MCPcopy Create free account
hub / github.com/PRQL/prql / all_in

Function all_in

prqlc/prqlc/src/sql/pq/preprocess.rs:495–498  ·  view source on GitHub ↗

Returns true if all cids are in exprs

(cids: &[CId], exprs: Vec<&Expr>)

Source from the content-addressed store, hash-verified

493
494/// Returns true if all cids are in exprs
495fn all_in(cids: &[CId], exprs: Vec<&Expr>) -> bool {
496 let exprs = col_refs(exprs);
497 cids.iter().all(|c| exprs.contains(c))
498}
499
500fn all_null(exprs: Vec<&Expr>) -> bool {
501 exprs

Callers 2

exceptFunction · 0.85
intersectFunction · 0.85

Calls 2

col_refsFunction · 0.85
iterMethod · 0.80

Tested by

no test coverage detected