MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_pk_constraint

Method get_pk_constraint

lib/sqlalchemy/engine/interfaces.py:1411–1430  ·  view source on GitHub ↗

Return information about the primary key constraint on table_name`. Given a :class:`_engine.Connection`, a string ``table_name``, and an optional string ``schema``, return primary key information as a dictionary corresponding to the :class:`.ReflectedPrimaryK

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

Source from the content-addressed store, hash-verified

1409 raise NotImplementedError()
1410
1411 def get_pk_constraint(
1412 self,
1413 connection: Connection,
1414 table_name: str,
1415 schema: Optional[str] = None,
1416 **kw: Any,
1417 ) -> ReflectedPrimaryKeyConstraint:
1418 """Return information about the primary key constraint on
1419 table_name`.
1420
1421 Given a :class:`_engine.Connection`, a string
1422 ``table_name``, and an optional string ``schema``, return primary
1423 key information as a dictionary corresponding to the
1424 :class:`.ReflectedPrimaryKeyConstraint` dictionary.
1425
1426 This is an internal dialect method. Applications should use
1427 :meth:`.Inspector.get_pk_constraint`.
1428
1429 """
1430 raise NotImplementedError()
1431
1432 def get_multi_pk_constraint(
1433 self,

Calls

no outgoing calls