Skip to main content

Module collection_predicate

Module collection_predicate 

Source
Expand description

Plan a predicate against one collection the way a single-collection SELECT ... WHERE plans its WHERE.

An entry point that receives a predicate as a typed tree instead of SQL text (the native protocol’s metadata filter) plans it here. The predicate then gets the same column check and the same literal coercion as the WHERE a SQL client writes for the same filter, so both entry points match the same rows.

Functions§

plan_collection_predicate
Plan predicate as the WHERE of SELECT * FROM <collection>.