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

Method into_ast

prqlc/prqlc/src/sql/gen_expr.rs:1144–1152  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1142
1143impl ExprOrSource {
1144 pub fn into_ast(self) -> sql_ast::Expr {
1145 match self {
1146 ExprOrSource::Expr(ast) => *ast,
1147 ExprOrSource::Source(SourceExpr { text: source, .. }) => {
1148 // The s-string hack
1149 sql_ast::Expr::Identifier(sql_ast::Ident::new(source))
1150 }
1151 }
1152 }
1153
1154 pub fn into_source(self) -> String {
1155 match self {

Callers 15

translate_exprFunction · 0.80
process_nullFunction · 0.80
process_array_inFunction · 0.80
process_date_truncFunction · 0.80
process_date_to_textFunction · 0.80
process_concatFunction · 0.80
try_into_betweenFunction · 0.80
fetch_of_i64Function · 0.80
translate_select_itemFunction · 0.80
translate_column_sortFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected