Module query

Module query 

Source
Expand description

QuerySet API - Ormada-style query building QuerySet API for Django-like query building on SeaORM.

Structs§

Aggregated
Aggregated state - has aggregations/annotations
Filtered
Filtered state - has filter/exclude operations
Fresh
Fresh state - initial QuerySet, no operations applied
Grouped
Grouped state - has GROUP BY applied, ready for annotations
Ordered
Ordered state - has ordering applied
Paginated
Paginated state - has limit/offset applied
Q
Q object for complex queries (Ormada’s Q objects)
QueryPlan
Query plan - a collection of operations that can be inspected and optimized
QuerySet
Main QuerySet structure (Ormada’s QuerySet equivalent)

Enums§

Aggregation
SQL aggregation function for use with .annotate()
FilterExpr
Type-safe filter expression for building queries
FilterOp
Type-safe filter expression for building queries
OrderDirection
Order direction for sorting
QueryOp
Represents a single query operation - fully introspectable
QueryState
Query building state for introspection
SoftDeleteMode
Soft delete filtering mode

Traits§

CanAnnotate
Marker trait for states that can add annotations (aggregations)
CanExecute
Marker trait for states that can execute queries
CanExplain
Marker trait for states that can add explain/explain_analyze
CanFilter
Marker trait for states that can add filters
CanGroup
Marker trait for states that can add GROUP BY
CanOrder
Marker trait for states that can add ordering
CanPaginate
Marker trait for states that can add pagination
ColumnExt
Extension trait for Ormada-specific column operations
QueryExt
Extension trait to add .objects() method to entities
QuerySetState
Marker trait for all valid QuerySet states