airflow.providers.fab.auth_manager.api_fastapi.sorting¶
Functions¶
|
Build an SQLAlchemy ORDER BY expression from the order_by parameter. |
Module Contents¶
- airflow.providers.fab.auth_manager.api_fastapi.sorting.build_ordering(order_by, *, allowed)[source]¶
Build an SQLAlchemy ORDER BY expression from the order_by parameter.
- Parameters:
order_by (str) – Public field name, optionally prefixed with “-” for descending.
allowed (collections.abc.Mapping[str, sqlalchemy.sql.elements.ColumnElement[Any]] | collections.abc.Mapping[str, sqlalchemy.orm.InstrumentedAttribute[Any]]) – Map of public field to SQLAlchemy column/expression.