MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / table

Method table

lib/sqlalchemy/sql/schema.py:4175–4184  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4173
4174 @property
4175 def table(self) -> Table:
4176 try:
4177 if isinstance(self.parent, Table):
4178 return self.parent
4179 except AttributeError:
4180 pass
4181 raise exc.InvalidRequestError(
4182 "This constraint is not bound to a table. Did you "
4183 "mean to call table.append_constraint(constraint) ?"
4184 )
4185
4186 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:
4187 assert isinstance(parent, (Table, Column))

Callers 15

base.pyFile · 0.45
define_tablesMethod · 0.45
_fixtureMethod · 0.45
FooClass · 0.45
test_limitMethod · 0.45
test_update_limitMethod · 0.45
test_delete_limitMethod · 0.45
test_castMethod · 0.45

Calls

no outgoing calls

Tested by 13

define_tablesMethod · 0.36
_fixtureMethod · 0.36
test_limitMethod · 0.36
test_update_limitMethod · 0.36
test_delete_limitMethod · 0.36
test_castMethod · 0.36
test_float_castMethod · 0.36
test_extractMethod · 0.36