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

Method qualify_vars

crates/sql-parser/src/ast/sql.rs:25–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23
24impl SqlAst {
25 pub fn qualify_vars(self) -> Self {
26 match self {
27 Self::Select(select) => Self::Select(select.qualify_vars()),
28 Self::Update(SqlUpdate {
29 table: with,
30 assignments,
31 filter,
32 }) => Self::Update(SqlUpdate {
33 table: with.clone(),
34 filter: filter.map(|expr| expr.qualify_vars(with)),
35 assignments,
36 }),
37 Self::Delete(SqlDelete { table: with, filter }) => Self::Delete(SqlDelete {
38 table: with.clone(),
39 filter: filter.map(|expr| expr.qualify_vars(with)),
40 }),
41 _ => self,
42 }
43 }
44
45 pub fn find_unqualified_vars(self) -> SqlParseResult<Self> {
46 match self {

Callers 2

parse_sqlFunction · 0.45
parse_subscriptionFunction · 0.45

Calls 3

DeleteClass · 0.85
cloneMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected