app.model.orm.orm_base#
Classes#
The shared base class of all the ORM models |
Module Contents#
- class app.model.orm.orm_base.OrmBase[source]#
Bases:
sqlalchemy.orm.DeclarativeBaseThe shared base class of all the ORM models
- classmethod list_ordering(column, values)[source]#
Return an sql CASE statement that can be used to order records based on the values of this column according to the given list of values.
For details, see: https://docs.sqlalchemy.org/en/20/core/sqlelement.html#sqlalchemy.sql.expression.case