MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / CommonMixin

Class CommonMixin

test/orm/declarative/test_mixin.py:1262–1269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1260
1261 def test_joined_table_propagation(self):
1262 class CommonMixin:
1263 @declared_attr
1264 def __tablename__(cls):
1265 return cls.__name__.lower()
1266
1267 __table_args__ = {"mysql_engine": "InnoDB"}
1268 timestamp = mapped_column(Integer)
1269 id = Column(Integer, primary_key=True)
1270
1271 class Generic(Base, CommonMixin):
1272 discriminator = Column("python_type", String(50))

Callers

nothing calls this directly

Calls 2

mapped_columnFunction · 0.90
ColumnClass · 0.90

Tested by

no test coverage detected