Removed table_count() method - I don't need it after all

pull/432/head
Simon Willison 2019-04-18 09:03:52 -07:00
rodzic 938e072ece
commit f5e7db07aa
1 zmienionych plików z 0 dodań i 4 usunięć

Wyświetl plik

@ -359,10 +359,6 @@ class Datasette:
)
return bool(results.rows)
async def table_count(self, database, table):
results = await self.execute(database, "select count(*) from [{}]".format(table))
return results.rows[0][0]
async def expand_foreign_keys(self, database, table, column, values):
"Returns dict mapping (column, value) -> label"
labeled_fks = {}