MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_table_options

Method get_table_options

lib/sqlalchemy/engine/reflection.py:664–693  ·  view source on GitHub ↗

r"""Return a dictionary of options specified when the table of the given name was created. This currently includes some options that apply to MySQL and Oracle Database tables. :param table_name: string name of the table. For special quoting, use :class:`.q

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

Source from the content-addressed store, hash-verified

662 )
663
664 def get_table_options(
665 self, table_name: str, schema: Optional[str] = None, **kw: Any
666 ) -> Dict[str, Any]:
667 r"""Return a dictionary of options specified when the table of the
668 given name was created.
669
670 This currently includes some options that apply to MySQL and Oracle
671 Database tables.
672
673 :param table_name: string name of the table. For special quoting,
674 use :class:`.quoted_name`.
675
676 :param schema: string schema name; if omitted, uses the default schema
677 of the database connection. For special quoting,
678 use :class:`.quoted_name`.
679
680 :param \**kw: Additional keyword argument to pass to the dialect
681 specific implementation. See the documentation of the dialect
682 in use for more information.
683
684 :return: a dict with the table options. The returned keys depend on the
685 dialect in use. Each one is prefixed with the dialect name.
686
687 .. seealso:: :meth:`Inspector.get_multi_table_options`
688
689 """
690 with self._operation_context() as conn:
691 return self.dialect.get_table_options(
692 conn, table_name, schema, info_cache=self.info_cache, **kw
693 )
694
695 def get_multi_table_options(
696 self,

Callers

nothing calls this directly

Calls 1

_operation_contextMethod · 0.95

Tested by

no test coverage detected