MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_unique_constraints

Method get_unique_constraints

lib/sqlalchemy/engine/interfaces.py:1667–1684  ·  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

1665 raise NotImplementedError()
1666
1667 def get_unique_constraints(
1668 self,
1669 connection: Connection,
1670 table_name: str,
1671 schema: Optional[str] = None,
1672 **kw: Any,
1673 ) -> List[ReflectedUniqueConstraint]:
1674 r"""Return information about unique constraints in ``table_name``.
1675
1676 Given a string ``table_name`` and an optional string ``schema``, return
1677 unique constraint information as a list of dicts corresponding
1678 to the :class:`.ReflectedUniqueConstraint` dictionary.
1679
1680 This is an internal dialect method. Applications should use
1681 :meth:`.Inspector.get_unique_constraints`.
1682 """
1683
1684 raise NotImplementedError()
1685
1686 def get_multi_unique_constraints(
1687 self,

Calls

no outgoing calls