MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / table

Method table

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

Source from the content-addressed store, hash-verified

4553
4554 @property
4555 def table(self) -> Table:
4556 try:
4557 if isinstance(self.parent, Table):
4558 return self.parent
4559 except AttributeError:
4560 pass
4561 raise exc.InvalidRequestError(
4562 "This constraint is not bound to a table. Did you "
4563 "mean to call table.append_constraint(constraint) ?"
4564 )
4565
4566 def _set_parent(self, parent: SchemaEventTarget, **kw: Any) -> None:
4567 assert isinstance(parent, (Table, Column))

Callers 15

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

Calls

no outgoing calls