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 « Inspector »

Méthode sqlalchemy.Inspector.get_multi_table_options

Signature de la méthode get_multi_table_options

def get_multi_table_options(self, schema: 'Optional[str]' = None, filter_names: 'Optional[Sequence[str]]' = None, kind: 'ObjectKind' = <ObjectKind.TABLE: 1>, scope: 'ObjectScope' = <ObjectScope.DEFAULT: 1>, **kw: 'Any') -> 'Dict[TableKey, Dict[str, Any]]' 

Description

help(Inspector.get_multi_table_options)

Return a dictionary of options specified when the tables in the
given schema were created.

The tables can be filtered by passing the names to use to
``filter_names``.

This currently includes some options that apply to MySQL and Oracle
tables.

:param schema: string schema name; if omitted, uses the default schema
 of the database connection.  For special quoting,
 use :class:`.quoted_name`.

:param filter_names: optionally return information only for the
 objects listed here.

:param kind: a :class:`.ObjectKind` that specifies the type of objects
 to reflect. Defaults to ``ObjectKind.TABLE``.

:param scope: a :class:`.ObjectScope` that specifies if options of
 default, temporary or any tables should be reflected.
 Defaults to ``ObjectScope.DEFAULT``.

: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 where the keys are two-tuple schema,table-name
 and the values are dictionaries with the table options.
 The returned keys in each dict depend on the
 dialect in use. Each one is prefixed with the dialect name.
 The schema is ``None`` if no schema is provided.

.. versionadded:: 2.0

.. seealso:: :meth:`Inspector.get_table_options`


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