Skip to main content

Module sql_hints

Module sql_hints 

Source
Expand description

Shared SQL types used across the compiler, schema, and database layers.

These types are defined here (rather than in compiler::aggregation or schema) so that db/ can import them without creating a dependency on the compilation or schema layers — a prerequisite for eventually extracting db/ into its own crate (fraiseql-db).

Structs§

OrderByClause
ORDER BY clause with optional type and native column information.
RelevanceOrder
The full-text operand of an ORDER BY clause (#1284).
SqlProjectionHint
SQL projection hint for database-specific field projection optimization.
VectorDistanceOrder
The vector-distance operand of an ORDER BY clause (#386).

Enums§

OrderDirection
Sort direction
ScalarFieldType
Declared scalar type of a JSON field, used to pick the SQL cast.
VectorOperandKind
The operand type a vector-distance comparison is made in (#959).