Skip to main content

is_orderable

Function is_orderable 

Source
pub fn is_orderable(hops: &[RelationHop]) -> bool
Expand description

Whether every hop is to-one. Ordering through a to-many hop is not expressible as a scalar correlated subquery, so generated asc()/ desc() accessors are gated on this (previously enforced by simply not emitting those methods past a to-many hop).