MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_table_oid

Method get_table_oid

lib/sqlalchemy/dialects/postgresql/base.py:3250–3267  ·  view source on GitHub ↗

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,

(
        self, table_name: str, schema: Optional[str] = None
    )

Source from the content-addressed store, hash-verified

3248 dialect: PGDialect
3249
3250 def get_table_oid(
3251 self, table_name: str, schema: Optional[str] = None
3252 ) -> int:
3253 """Return the OID for the given table name.
3254
3255 :param table_name: string name of the table. For special quoting,
3256 use :class:`.quoted_name`.
3257
3258 :param schema: string schema name; if omitted, uses the default schema
3259 of the database connection. For special quoting,
3260 use :class:`.quoted_name`.
3261
3262 """
3263
3264 with self._operation_context() as conn:
3265 return self.dialect.get_table_oid(
3266 conn, table_name, schema, info_cache=self.info_cache
3267 )
3268
3269 def get_domains(
3270 self, schema: Optional[str] = None

Callers

nothing calls this directly

Calls 2

_operation_contextMethod · 0.80
get_table_oidMethod · 0.45

Tested by

no test coverage detected