MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / parse_set_op

Function parse_set_op

crates/sql-parser/src/parser/sql.rs:354–359  ·  view source on GitHub ↗

Parse a set operation

(expr: SetExpr, limit: Option<Box<str>>)

Source from the content-addressed store, hash-verified

352
353/// Parse a set operation
354fn parse_set_op(expr: SetExpr, limit: Option<Box<str>>) -> SqlParseResult<SqlSelect> {
355 match expr {
356 SetExpr::Select(select) => parse_select(*select, limit).map(SqlSelect::qualify_vars),
357 _ => Err(SqlUnsupported::feature(expr).into()),
358 }
359}
360
361/// Parse a SELECT statement
362fn parse_select(select: Select, limit: Option<Box<str>>) -> SqlParseResult<SqlSelect> {

Callers 1

parse_queryMethod · 0.70

Calls 3

parse_selectFunction · 0.70
ErrFunction · 0.50
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…