MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _add_table

Method _add_table

lib/sqlalchemy/sql/schema.py:5979–5985  ·  view source on GitHub ↗
(
        self, name: str, schema: Optional[str], table: Table
    )

Source from the content-addressed store, hash-verified

5977 return table_or_key in self.tables
5978
5979 def _add_table(
5980 self, name: str, schema: Optional[str], table: Table
5981 ) -> None:
5982 key = _get_table_key(name, schema)
5983 self.tables._insert_item(key, table)
5984 if schema:
5985 self._schemas.add(schema)
5986
5987 def _remove_table(self, name: str, schema: Optional[str]) -> None:
5988 key = _get_table_key(name, schema)

Callers 2

_newMethod · 0.80
_set_parentMethod · 0.80

Calls 3

_get_table_keyFunction · 0.85
_insert_itemMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected