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

Method parse_query

crates/sql-parser/src/parser/sub.rs:94–107  ·  view source on GitHub ↗
(query: Query)

Source from the content-addressed store, hash-verified

92 type Ast = SqlSelect;
93
94 fn parse_query(query: Query) -> SqlParseResult<Self::Ast> {
95 match query {
96 Query {
97 with: None,
98 body,
99 order_by,
100 limit: None,
101 offset: None,
102 fetch: None,
103 locks,
104 } if order_by.is_empty() && locks.is_empty() => parse_set_op(*body),
105 _ => Err(SubscriptionUnsupported::feature(query).into()),
106 }
107 }
108}
109
110/// Parse a set operation

Callers

nothing calls this directly

Calls 3

parse_set_opFunction · 0.70
ErrFunction · 0.50
is_emptyMethod · 0.45

Tested by

no test coverage detected