MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / get_foreign_keys

Method get_foreign_keys

mssqlcli/mssqlcliclient.py:357–364  ·  view source on GitHub ↗

Yields (parent_schema, parent_table, parent_column, child_schema, child_table, child_column) typles

(self)

Source from the content-addressed store, hash-verified

355 yield (row[0], row[1])
356
357 def get_foreign_keys(self):
358 """ Yields (parent_schema, parent_table, parent_column, child_schema, child_table,
359 child_column) typles"""
360 query = mssqlqueries.get_foreignkeys()
361 logger.info(u'Foreign keys query: %s', query)
362 for tabular_result in self.execute_query(query):
363 for row in tabular_result[0]:
364 yield ForeignKey(*row)
365
366 def shutdown(self):
367 self.sql_tools_client.shutdown()

Callers 1

refresh_tablesFunction · 0.80

Calls 1

execute_queryMethod · 0.95

Tested by

no test coverage detected