MCPcopy
hub / github.com/pallets-eco/flask-sqlalchemy / Todo

Class Todo

tests/test_view_query.py:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 if issubclass(db.Model, (sa_orm.MappedAsDataclass)):
70
71 class Todo(db.Model):
72 id: sa_orm.Mapped[int] = sa_orm.mapped_column(
73 sa.Integer, init=False, primary_key=True
74 )
75 title: sa_orm.Mapped[str] = sa_orm.mapped_column(
76 sa.String, nullable=True, default=None
77 )
78
79 elif issubclass(db.Model, (sa_orm.DeclarativeBase, sa_orm.DeclarativeBaseNoMeta)):
80

Callers 5

test_view_get_or_404Function · 0.70
test_first_or_404Function · 0.70
test_view_one_or_404Function · 0.70
test_paginateFunction · 0.70

Calls

no outgoing calls

Tested by 5

test_view_get_or_404Function · 0.56
test_first_or_404Function · 0.56
test_view_one_or_404Function · 0.56
test_paginateFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…