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

Method get_unique_constraints

lib/sqlalchemy/engine/interfaces.py:1634–1651  ·  view source on GitHub ↗

r"""Return information about unique constraints in ``table_name``. Given a string ``table_name`` and an optional string ``schema``, return unique constraint information as a list of dicts corresponding to the :class:`.ReflectedUniqueConstraint` dictionary. This is a

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

Source from the content-addressed store, hash-verified

1632 raise NotImplementedError()
1633
1634 def get_unique_constraints(
1635 self,
1636 connection: Connection,
1637 table_name: str,
1638 schema: Optional[str] = None,
1639 **kw: Any,
1640 ) -> List[ReflectedUniqueConstraint]:
1641 r"""Return information about unique constraints in ``table_name``.
1642
1643 Given a string ``table_name`` and an optional string ``schema``, return
1644 unique constraint information as a list of dicts corresponding
1645 to the :class:`.ReflectedUniqueConstraint` dictionary.
1646
1647 This is an internal dialect method. Applications should use
1648 :meth:`.Inspector.get_unique_constraints`.
1649 """
1650
1651 raise NotImplementedError()
1652
1653 def get_multi_unique_constraints(
1654 self,

Calls

no outgoing calls