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

Method define_tables

lib/sqlalchemy/testing/suite/test_select.py:744–751  ·  view source on GitHub ↗
(cls, metadata)

Source from the content-addressed store, hash-verified

742
743 @classmethod
744 def define_tables(cls, metadata):
745 Table("a", metadata, Column("id", Integer, primary_key=True))
746 Table(
747 "b",
748 metadata,
749 Column("id", Integer, primary_key=True),
750 Column("a_id", ForeignKey("a.id"), nullable=False),
751 )
752
753 @classmethod
754 def insert_data(cls, connection):

Callers

nothing calls this directly

Calls 3

ForeignKeyClass · 0.85
TableFunction · 0.50
ColumnFunction · 0.50

Tested by

no test coverage detected