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 ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé
Classe « Inspector »

Méthode sqlalchemy.Inspector.has_table

Signature de la méthode has_table

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

Description

help(Inspector.has_table)

Return True if the backend has a table, view, or temporary
table of the given name.

:param table_name: name of the table to check
:param schema: schema name to query, if not the default schema.
:param \**kw: Additional keyword argument to pass to the dialect
 specific implementation. See the documentation of the dialect
 in use for more information.

.. versionadded:: 1.4 - the :meth:`.Inspector.has_table` method
   replaces the :meth:`_engine.Engine.has_table` method.

.. versionchanged:: 2.0:: :meth:`.Inspector.has_table` now formally
   supports checking for additional table-like objects:

   * any type of views (plain or materialized)
   * temporary tables of any kind

   Previously, these two checks were not formally specified and
   different dialects would vary in their behavior.   The dialect
   testing suite now includes tests for all of these object types
   and should be supported by all SQLAlchemy-included dialects.
   Support among third party dialects may be lagging, however.



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