Skip to main content

extract_pattern_from_exists_query

Function extract_pattern_from_exists_query 

Source
pub fn extract_pattern_from_exists_query(query: &Query) -> Result<Pattern>
Expand description

Extracts the Pattern from a pattern-predicate Query.

Pattern predicate queries are always Query::Single with exactly one Clause::Match containing the pattern. Returns Err if the structure doesn’t match (triggers fallback to ExistsExecExpr).