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 ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé
Classe « Dialect »

Méthode sqlalchemy.Dialect.has_schema

Signature de la méthode has_schema

def has_schema(self, connection: 'Connection', schema_name: 'str', **kw: 'Any') -> 'bool' 

Description

help(Dialect.has_schema)

Check the existence of a particular schema name in the database.

Given a :class:`_engine.Connection` object, a string
``schema_name``, return ``True`` if a schema of the
given exists, ``False`` otherwise.

The :class:`.DefaultDialect` implements this by checking
the presence of ``schema_name`` among the schemas returned by
:meth:`.Dialect.get_schema_names`,
however dialects can implement a more performant version.

This is an internal dialect method. Applications should use
:meth:`_engine.Inspector.has_schema`.

.. versionadded:: 2.0



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