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_foreign_keys

Signature de la méthode get_foreign_keys

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

Description

help(Inspector.get_foreign_keys)

Return information about foreign_keys in ``table_name``.

Given a string ``table_name``, and an optional string `schema`, return
foreign key information as a list of
:class:`.ReflectedForeignKeyConstraint`.

: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
 a foreign key definition.

.. seealso:: :meth:`Inspector.get_multi_foreign_keys`


Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé