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

Method as_str

prqlc/prqlc/src/sql/pq/ast.rs:118–123  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

116
117impl<Rel> SqlTransform<Rel> {
118 pub fn as_str(&self) -> &str {
119 match self {
120 SqlTransform::Super(t) => t.as_ref(),
121 _ => self.as_ref(),
122 }
123 }
124
125 pub fn into_super_and<T, F: FnOnce(rq::Transform) -> Result<T, rq::Transform>>(
126 self,

Callers 15

compileFunction · 0.80
prql_to_plFunction · 0.80
pl_to_rqFunction · 0.80
rq_to_sqlFunction · 0.80
parseFunction · 0.80
compose_displayMethod · 0.80
translate_exprFunction · 0.80
translate_literalFunction · 0.80
is_keywordFunction · 0.80
translate_operatorFunction · 0.80
as_col_namesFunction · 0.80

Calls

no outgoing calls

Tested by 4

import_csvMethod · 0.64
collect_book_examplesFunction · 0.64
test_website_examplesFunction · 0.64