MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / get_foreign_keys

Method get_foreign_keys

lib/sqlalchemy/engine/interfaces.py:1426–1444  ·  view source on GitHub ↗

Return information about foreign_keys in ``table_name``. Given a :class:`_engine.Connection`, a string ``table_name``, and an optional string ``schema``, return foreign key information as a list of dicts corresponding to the :class:`.ReflectedForeignKeyConstraint` di

(
        self,
        connection: Connection,
        table_name: str,
        schema: Optional[str] = None,
        **kw: Any,
    )

Source from the content-addressed store, hash-verified

1424 raise NotImplementedError()
1425
1426 def get_foreign_keys(
1427 self,
1428 connection: Connection,
1429 table_name: str,
1430 schema: Optional[str] = None,
1431 **kw: Any,
1432 ) -> List[ReflectedForeignKeyConstraint]:
1433 """Return information about foreign_keys in ``table_name``.
1434
1435 Given a :class:`_engine.Connection`, a string
1436 ``table_name``, and an optional string ``schema``, return foreign
1437 key information as a list of dicts corresponding to the
1438 :class:`.ReflectedForeignKeyConstraint` dictionary.
1439
1440 This is an internal dialect method. Applications should use
1441 :meth:`_engine.Inspector.get_foreign_keys`.
1442 """
1443
1444 raise NotImplementedError()
1445
1446 def get_multi_foreign_keys(
1447 self,

Calls

no outgoing calls