MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / define_tables

Method define_tables

test/sql/test_insert_exec.py:59–68  ·  view source on GitHub ↗
(cls, metadata)

Source from the content-addressed store, hash-verified

57
58 @classmethod
59 def define_tables(cls, metadata):
60 Table(
61 "users",
62 metadata,
63 Column(
64 "user_id", INT, primary_key=True, test_needs_autoincrement=True
65 ),
66 Column("user_name", VARCHAR(20)),
67 test_needs_acid=True,
68 )
69
70 @testing.requires.multivalues_inserts
71 @testing.combinations("string", "column", "expect", argnames="keytype")

Callers

nothing calls this directly

Calls 3

TableClass · 0.90
ColumnClass · 0.90
VARCHARClass · 0.90

Tested by

no test coverage detected