Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé
Classe « Inspector »

Méthode sqlalchemy.Inspector.get_unique_constraints

Signature de la méthode get_unique_constraints

def get_unique_constraints(self, table_name: 'str', schema: 'Optional[str]' = None, **kw: 'Any') -> 'List[ReflectedUniqueConstraint]' 

Description

help(Inspector.get_unique_constraints)

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
:class:`.ReflectedUniqueConstraint`.

:param table_name: string name of the table.  For special quoting,
 use :class:`.quoted_name`.

:param schema: string schema name; if omitted, uses the default schema
 of the database connection.  For special quoting,
 use :class:`.quoted_name`.

:param \**kw: Additional keyword argument to pass to the dialect
 specific implementation. See the documentation of the dialect
 in use for more information.

:return: a list of dictionaries, each representing the
 definition of an unique constraint.

.. seealso:: :meth:`Inspector.get_multi_unique_constraints`


Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé