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_table_names

Signature de la méthode get_table_names

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

Description

help(Inspector.get_table_names)

Return all table names within a particular schema.

The names are expected to be real tables only, not views.
Views are instead returned using the
:meth:`_reflection.Inspector.get_view_names` and/or
:meth:`_reflection.Inspector.get_materialized_view_names`
methods.

:param schema: Schema name. If ``schema`` is left at ``None``, the
 database's default schema is
 used, else the named schema is searched.  If the database does not
 support named schemas, behavior is undefined if ``schema`` is not
 passed as ``None``.  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.

.. seealso::

    :meth:`_reflection.Inspector.get_sorted_table_and_fkc_names`

    :attr:`_schema.MetaData.sorted_tables`



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