MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / take

Method take

src/sql-parser/src/ast/defs/query.rs:100–111  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

98 }
99
100 pub fn take(&mut self) -> Query<T> {
101 mem::replace(
102 self,
103 Query::<T> {
104 ctes: CteBlock::empty(),
105 order_by: vec![],
106 body: SetExpr::Values(Values(vec![])),
107 limit: None,
108 offset: None,
109 },
110 )
111 }
112}
113
114/// A node in a tree, representing a "query body" expression, roughly:

Callers

nothing calls this directly

Calls 2

ValuesClass · 0.70
replaceFunction · 0.50

Tested by

no test coverage detected