Expand description
The query AST adapters lower.
Not a Mongo query document. A Mongo query document is already lowered, and handing one to the Postgres adapter would mean writing a Mongo-query interpreter in SQL, which is roughly the shape upstream ended up with.
The constraint set is the 0.1.0 scope: equality, $ne, $in, $nin, $exists and the four
range operators, plus limit, skip, order, count and keys. Anything outside it
is an error, never silently ignored, because a dropped constraint broadens the result set,
which is an authorization failure rather than a missing feature. That rule is enforced at
parse time by Comparison::from_operator returning an error for an unknown operator, so
there is no code path where an unrecognised constraint reaches an adapter.
Structs§
- Constraint
- One field, one comparison.
- Query
Options - Everything about a read that is not a constraint.
Enums§
- Comparison
- How one field is compared to one value.
- Sort
Direction - Sort direction for one key. Parse spells descending with a leading
-.
Constants§
- DEFAULT_
LIMIT - Parse’s default page size when a query does not ask for one.