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 ? Calcul scientifique
avec Python
Voir le programme détaillé
Classe « Inspector »

Méthode sqlalchemy.Inspector.get_pk_constraint

Signature de la méthode get_pk_constraint

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

Description

help(Inspector.get_pk_constraint)

Return information about primary key constraint in ``table_name``.

Given a string ``table_name``, and an optional string `schema`, return
primary key information as a :class:`.ReflectedPrimaryKeyConstraint`.

: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 dictionary representing the definition of
 a primary key constraint.

.. seealso:: :meth:`Inspector.get_multi_pk_constraint`


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