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

Function parse_set_op

crates/sql-parser/src/parser/sub.rs:111–116  ·  view source on GitHub ↗

Parse a set operation

(expr: SetExpr)

Source from the content-addressed store, hash-verified

109
110/// Parse a set operation
111fn parse_set_op(expr: SetExpr) -> SqlParseResult<SqlSelect> {
112 match expr {
113 SetExpr::Select(select) => parse_select(*select).map(SqlSelect::qualify_vars),
114 _ => Err(SqlUnsupported::SetOp(Box::new(expr)).into()),
115 }
116}
117
118// Parse a SELECT statement
119fn parse_select(select: Select) -> SqlParseResult<SqlSelect> {

Callers 1

parse_queryMethod · 0.70

Calls 4

parse_selectFunction · 0.70
ErrFunction · 0.50
newFunction · 0.50
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…