Skip to main content

select_pivot

Function select_pivot 

Source
pub fn select_pivot(dialect: Dialect, query: &PivotQuery) -> Prepared
Expand description

SELECT parent, related FROM pivot WHERE parent IN (…).

A pivot table has no Entity, because two key columns do not need one. The route is global: a pivot spanning shards cannot be resolved from one side’s keys, and quietly picking a shard would silently lose the links held on the others.