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

Function fetch_of_i64

prqlc/prqlc/src/sql/gen_expr.rs:771–779  ·  view source on GitHub ↗
(take: i64, ctx: &mut Context)

Source from the content-addressed store, hash-verified

769}
770
771pub(super) fn fetch_of_i64(take: i64, ctx: &mut Context) -> Fetch {
772 let kind = rq::ExprKind::Literal(Literal::Integer(take));
773 let expr = rq::Expr { kind, span: None };
774 Fetch {
775 quantity: Some(translate_expr(expr, ctx).unwrap().into_ast()),
776 with_ties: false,
777 percent: false,
778 }
779}
780
781pub(super) fn translate_select_item(cid: rq::CId, ctx: &mut Context) -> Result<SelectItem> {
782 let expr = translate_cid(cid, ctx)?.into_ast();

Callers 1

Calls 3

LiteralEnum · 0.85
translate_exprFunction · 0.85
into_astMethod · 0.80

Tested by

no test coverage detected