Removed db.get_outbound_foreign_keys method

It duplicated the functionality of db.foreign_keys_for_table.
This commit is contained in:
Simon Willison 2020-05-30 11:39:46 -07:00
commit 124acf34a6
3 changed files with 2 additions and 9 deletions

View file

@ -319,11 +319,6 @@ class Database:
async def get_all_foreign_keys(self):
return await self.execute_fn(get_all_foreign_keys)
async def get_outbound_foreign_keys(self, table):
return await self.execute_fn(
lambda conn: get_outbound_foreign_keys(conn, table)
)
async def get_table_definition(self, table, type_="table"):
table_definition_rows = list(
await self.execute(