Skip to main content

Crate sift_query_sqlx

Crate sift_query_sqlx 

Source
Expand description

PostgreSQL renderer and sqlx executor for SiftQuery.

Re-exports§

pub use web::PublicError;
pub use web::QueryParams;
pub use web::SearchParamConfig;
pub use web::SearchParams;
pub use web::WebError;
pub use web::public_error;
pub use sift_query_core as core;

Modules§

postgres
PostgreSQL bindings, result decoding and opt-in query capabilities.
web
PostgreSQL web adapter primitives shared by axum, actix-web, and poem.

Structs§

CsvColumn
A server-owned export column and optional trusted formatter.
CsvExportPolicy
CsvExporter
CursorPage
A cursor page fetched without a count or cluster query.
DecodeError
DiagnosticStage
DictionaryLabelLoader
Enum/local dictionaries share the same one-batch loader contract as remote services.
EnrichContext
Context passed to post-query, whole-page enrichers.
FacetBucket
FacetPage
A page plus server-declared facet buckets.
FacetRequest
A server-declared facet over one entity field.
FacetResult
FacetResultSet
Named result wrapper useful when facets are fetched independently.
IndexAdvice
A conservative, server-side index hint. It is advisory only and never creates or changes database indexes.
Label
LabelEnricher
Page
PartitionName
PgExecutionPolicy
PgPoolRouter
Immutable server-owned entity-to-pool routing table.
PgRenderer
PgSiftQuery
QueryContext
QueryDiagnosticReport
QueryObservation
QueryShapeCache
Bounded LRU cache for SQL templates and value-free bind instructions.
QueryShapeId
RenderedPgQuery
ResultContext
ScanPolicy
Server-owned single-statement scan budget. PostgreSQL provides one statement snapshot; batch_size controls cooperative handoff, not cursor pagination.
SchemaValidationError
SchemaValidationReport
ShapeCacheStats
Cumulative observations for a bounded SQL-shape cache.
SqlContext
SummaryValue

Enums§

CountStrategy
ExecutionStrategy
ExtensionError
LabelFailurePolicy
MissingLabelPolicy
PgBindValue
PgSearchError
PoolRouteError
RenderError
ResultFilterDecision
SchemaValidationTarget
What the schema contract validator checked.
SnapshotIsolation
TimeoutStage

Traits§

LabelLoader
LabelTarget
Typed opt-in: implementations explicitly name the source fields and writable label fields. set_label must not modify database fields or ordering keys.
PageEnricher
Asynchronous page-level result enhancement. Implementations should batch external lookups and must not change count, summaries, or cursor metadata.
PartitionResolver
PgPoolSelector
Application-owned, nonblocking resolver for trusted request context. Client query parameters are never supplied to this hook.
PgSumType
PgSummaryValue
QueryObserver
Metrics/event bridge. Called once per completed or cancelled operation; panics are isolated. The callback must be nonblocking and cannot see SQL, binds, raw input, tenant identifiers, or cursor tokens.
ResultFilter
SqlInterceptor
TypedPageEnricher
Explicit typed opt-in: implementers declare which presentation fields may be filled and preserve database fields and ordering keys.

Type Aliases§

ExtensionFuture
RowMap
ScanFuture
SearchStream