pub fn expr_as_usize_literal(
expr: &Expr,
) -> Result<usize, InvalidRowBoundLiteral>Expand description
Resolve an Expr::Value into a usize row bound. Thin wrapper that
unpacks the Expr → Value layer so callers reading LIMIT/OFFSET/FETCH
clauses don’t each re-write the unpack. A non-Expr::Value expression
(a column reference, a function call, an arithmetic expression) is not
a literal the planner can read — it fails with the expression’s
Display text as raw.