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

Function translate_star

prqlc/prqlc/src/sql/gen_expr.rs:698–707  ·  view source on GitHub ↗
(ctx: &Context, span: Option<Span>)

Source from the content-addressed store, hash-verified

696}
697
698pub(super) fn translate_star(ctx: &Context, span: Option<Span>) -> Result<String> {
699 if !ctx.query.allow_stars {
700 Err(
701 Error::new_simple("Target dialect does not support * in this position.")
702 .with_span(span),
703 )
704 } else {
705 Ok("*".to_string())
706 }
707}
708
709pub(super) fn translate_sstring(
710 items: Vec<InterpolateItem<rq::Expr>>,

Callers 2

translate_cidFunction · 0.85
try_into_exprsFunction · 0.85

Calls 1

with_spanMethod · 0.80

Tested by

no test coverage detected