Skip to main content

Module query

Module query 

Source
Expand description

Query building, per-request options, and paginated results.

Provides QueryData (a SeaORM Select wrapper with pagination and relation-hydration steps), DeleteQueryData for bulk deletes, RepositoryOptions for limit/cursor/user/correlation settings, PageResult for cursor pages, and CursorData for opaque cursors.

Build a QueryData, optionally attach hydration with [QueryData::with_traverser], then run it through crate::data::PersistentRepository (get_all/get_many/get_one/ get_paginated_view and the *_traversed variants).

Cursors are base64-encoded JSON holding a limit and an id cursor. Selects filter on id in the direction recorded by the ordering (ascending uses id > cursor, descending uses id < cursor); deletes always use id > cursor.

Structs§

CursorData
Opaque pagination cursor carrying the page size and last-seen id.
DeleteQueryData
Bulk-delete wrapper around a SeaORM DeleteMany.
NoUser
Default user type used when no caller identity is supplied.
PageResult
One cursor page of rows.
QueryData
Builder wrapping a SeaORM entity loader with pagination and hydration settings.
RepositoryOptions
Per-request settings for repository queries.