MCPcopy Create free account
hub / github.com/PRQL/prql / lookup_table_decl

Method lookup_table_decl

prqlc/prqlc/src/sql/pq/context.rs:247–256  ·  view source on GitHub ↗
(&self, tid: &TId)

Source from the content-addressed store, hash-verified

245 }
246
247 pub fn lookup_table_decl(&self, tid: &TId) -> Option<&SqlTableDecl> {
248 let mut tid = tid;
249 loop {
250 let res = self.table_decls.get(tid)?;
251 match &res.redirect_to {
252 Some(redirect) => tid = redirect,
253 None => return Some(res),
254 }
255 }
256 }
257}
258
259/// Loads info about [Query] into [AnchorContext]

Callers 2

translate_relation_exprFunction · 0.80
translate_cteFunction · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected