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

Function translate_operator_expr

prqlc/prqlc/src/sql/operators.rs:35–41  ·  view source on GitHub ↗
(expr: rq::Expr, ctx: &mut Context)

Source from the content-addressed store, hash-verified

33}
34
35pub(super) fn translate_operator_expr(expr: rq::Expr, ctx: &mut Context) -> Result<ExprOrSource> {
36 let (name, args) = expr.kind.into_operator().unwrap();
37
38 let source = translate_operator(name, args, ctx).with_span(expr.span)?;
39
40 Ok(ExprOrSource::Source(source))
41}
42
43pub(super) fn translate_operator(
44 name: String,

Callers 3

translate_exprFunction · 0.85
process_date_truncFunction · 0.85
process_date_to_textFunction · 0.85

Calls 2

translate_operatorFunction · 0.85
with_spanMethod · 0.80

Tested by

no test coverage detected