class PGInspector(reflection.Inspector): (source)
Undocumented
Method | get |
Return a list of DOMAIN objects. |
Method | get |
Return a list of ENUM objects. |
Method | get |
Return a list of FOREIGN TABLE names. |
Method | get |
Return the OID for the given table name. |
Method | has |
Return if the database has the specified type in the provided schema. |
Class Variable | dialect |
Undocumented |
Inherited from Inspector
:
Class Method | from |
Construct a new dialect-specific Inspector object from the given engine or connection. |
Method | __init__ |
Initialize a new :class:`_reflection.Inspector`. |
Method | clear |
reset the cache for this :class:`.Inspector`. |
Method | get |
Return information about check constraints in ``table_name``. |
Method | get |
Return information about columns in ``table_name``. |
Method | get |
Return information about foreign_keys in ``table_name``. |
Method | get |
Return information about indexes in ``table_name``. |
Method | get |
Return all materialized view names in `schema`. |
Method | get |
Return information about check constraints in all tables in the given schema. |
Method | get |
Return information about columns in all objects in the given schema. |
Method | get |
Return information about foreign_keys in all tables in the given schema. |
Method | get |
Return information about indexes in in all objects in the given schema. |
Method | get |
Return information about primary key constraints in all tables in the given schema. |
Method | get |
Return information about the table comment in all objects in the given schema. |
Method | get |
Return a dictionary of options specified when the tables in the given schema were created. |
Method | get |
Return information about unique constraints in all tables in the given schema. |
Method | get |
Return information about primary key constraint in ``table_name``. |
Method | get |
Return all schema names. |
Method | get |
Return all sequence names in `schema`. |
Method | get |
Return dependency-sorted table and foreign key constraint names in referred to within a particular schema. |
Method | get |
Return information about the table comment for ``table_name``. |
Method | get |
Return all table names within a particular schema. |
Method | get |
Return a dictionary of options specified when the table of the given name was created. |
Method | get |
Return a list of temporary table names for the current bind. |
Method | get |
Return a list of temporary view names for the current bind. |
Method | get |
Return information about unique constraints in ``table_name``. |
Method | get |
Return definition for the plain or materialized view called ``view_name``. |
Method | get |
Return all non-materialized view names in `schema`. |
Method | has |
Check the existence of a particular index name in the database. |
Method | has |
Return True if the backend has a schema with the given name. |
Method | has |
Return True if the backend has a sequence with the given name. |
Method | has |
Return True if the backend has a table, view, or temporary table of the given name. |
Method | reflect |
Given a :class:`_schema.Table` object, load its internal constructs based on introspection. |
Method | sort |
Return dependency-sorted table and foreign key constraint names referred to within multiple schemas. |
Instance Variable | bind |
Undocumented |
Instance Variable | engine |
Undocumented |
Instance Variable | info |
Undocumented |
Property | default |
Return the default schema name presented by the dialect for the current engine's database user. |
Class Method | _construct |
Undocumented |
Method | _connection |
Undocumented |
Method | _engine |
Undocumented |
Method | _get |
Undocumented |
Method | _init |
Undocumented |
Method | _init |
Undocumented |
Method | _init |
Undocumented |
Method | _inspection |
Return an :class:`_reflection.Inspector` from this one that will run all operations on a single connection. |
Method | _instantiate |
Undocumented |
Method | _operation |
Return a context that optimizes for multiple operations on a single transaction. |
Method | _reflect |
Undocumented |
Method | _reflect |
Undocumented |
Method | _reflect |
Undocumented |
Method | _reflect |
Undocumented |
Method | _reflect |
Undocumented |
Method | _reflect |
Undocumented |
Method | _reflect |
Undocumented |
Class Variable | _index |
Undocumented |
Instance Variable | _op |
Undocumented |
Inherited from Inspectable
(via Inspector
):
Class Variable | __slots__ |
Undocumented |
Return a list of DOMAIN objects. Each member is a dictionary containing these fields: * name - name of the domain * schema - the schema name for the domain. * visible - boolean, whether or not this domain is visible in the default search path. * type - the type defined by this domain. * nullable - Indicates if this domain can be ``NULL``. * default - The default value of the domain or ``None`` if the domain has no default. * constraints - A list of dict wit the constraint defined by this domain. Each element constaints two keys: ``name`` of the constraint and ``check`` with the constraint text. :param schema: schema name. If None, the default schema (typically 'public') is used. May also be set to ``'*'`` to indicate load domains for all schemas. .. versionadded:: 2.0
Return a list of ENUM objects. Each member is a dictionary containing these fields: * name - name of the enum * schema - the schema name for the enum. * visible - boolean, whether or not this enum is visible in the default search path. * labels - a list of string labels that apply to the enum. :param schema: schema name. If None, the default schema (typically 'public') is used. May also be set to ``'*'`` to indicate load enums for all schemas. .. versionadded:: 1.0.0
Return a list of FOREIGN TABLE names. Behavior is similar to that of :meth:`_reflection.Inspector.get_table_names`, except that the list is limited to those tables that report a ``relkind`` value of ``f``. .. versionadded:: 1.0.0
Return the OID for the given table name. :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`.
Return if the database has the specified type in the provided schema. :param type_name: the type to check. :param schema: schema name. If None, the default schema (typically 'public') is used. May also be set to ``'*'`` to check in all schemas. .. versionadded:: 2.0