Expand description
Server-side ORDER BY primitive for the list tool.
Provides order_by::OrderByItem (field + direction pair) and
order_by::Direction (Asc / Desc), along with
order_by::validate_order_by (schema-whitelist check) and
order_by::build_order_by_sql (infallible SQL clause builder).
Structs§
- Order
ByItem - A single sort key for the
order_byargument ofcrate::store::Store::list.
Enums§
- Direction
- Sort direction for a single
OrderByItem.
Functions§
- build_
order_ by_ sql - Build a SQL ORDER BY clause body from a validated slice of
OrderByItem. - validate_
order_ by - Validate a slice of
OrderByItemvalues against a table schema.