Expand description
Shared repository helpers for applying whitelisted sort options.
The helpers accept a caller-provided whitelist of field names and SeaORM columns, then apply ascending or descending ordering to a query. Keeping this logic shared avoids repeating unsafe ad-hoc string-to-column mapping in each repository.
Enums§
- Sort
Order - Sort direction used by API query parameters.
Functions§
- order_
by_ column - Orders a query by one column.
- order_
by_ column_ with_ id - Orders a query by one column and then by an id column for stable ordering.
- order_
by_ id - Orders a query by an id column.