Skip to main content

Module order_by

Module order_by 

Source
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§

OrderByItem
A single sort key for the order_by argument of crate::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 OrderByItem values against a table schema.