Structs§
- Cursor
Page - Response metadata for cursor-based pagination.
- Database
Manager - Multi-database connection manager. Maps connection names to SQL connections.
- Filter
Param - A single filter parameter parsed from
?filter[field]=value. - Filter
Set - A set of filter parameters for a query.
- Mongo
Backed Store - MongoDB-backed resource store (M14).
- Mongo
Connection - A MongoDB connection wrapping a database handle.
- Offset
Page - Response metadata for offset-based pagination.
- OrmBacked
Store - ORM-backed store (M14). Delegates to OrmResourceQuery using a per-resource connection.
- OrmResource
Query - ORM-backed resource query. Executes dialect-aware SQL via SeaORM. Supports Postgres, MySQL, and SQLite backends.
- Resource
Query - Dynamic query executor for a resource defined by a
ResourceDefinition. - Resource
Row - A single row returned from a resource query, represented as a JSON object.
- Search
Param - Full-text search parameter using PostgreSQL
to_tsvector. - Sort
Field - A single field + direction sort instruction.
- Sort
Param - Parsed sort parameters from
?sort=-created_at,name. - SqlConnection
- A single SQL database connection (SeaORM). Used for CRUD via ORM; migrations may use the underlying pool separately.
Enums§
- Page
Request - Request parameters for pagination.
- Sort
Direction - Sort direction for a field.
Traits§
- Resource
Store - Typed resource store implemented by generated per-resource query modules or OrmBackedStore (M14).
Functions§
- build_
create_ table_ sql - Builds a SQL
CREATE TABLEstatement from aResourceDefinition(Postgres). - build_
create_ table_ sql_ for_ engine - Builds a SQL
CREATE TABLEstatement for the given engine (M14 multi-DB). - build_
multi_ store_ registry - Builds a store registry supporting both SQL and MongoDB backends (M14 full multi-DB).
- build_
orm_ store_ registry - Builds a store registry from DatabaseManager and resources (M14 ORM path).
Each resource gets an OrmBackedStore using the connection for its
db(or default). - create_
pool - Creates a PostgreSQL connection pool from the given database URL.
- decode_
cursor - Decodes a cursor string (base64-encoded UUID) to a UUID string.
- encode_
cursor - Encodes a UUID string as a base64 cursor.
- health_
check - Runs a simple
SELECT 1health check against the pool. - parse_
embedded_ json - parse_
filter - parse_
filter_ text - parse_
optional_ json - require_
field - row_
from_ model - run_
migrations - Runs all pending SQL migrations from the given directory (legacy single-DB mode).
- run_
migrations_ multi - Run migrations on all SQL engines in the DatabaseManager (M14 multi-DB mode).
- sort_
direction_ at - sort_
field_ at