MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / parse_expr_opt

Function parse_expr_opt

crates/sql-parser/src/parser/mod.rs:313–315  ·  view source on GitHub ↗

Parse an optional scalar expression

(opt: Option<Expr>)

Source from the content-addressed store, hash-verified

311
312/// Parse an optional scalar expression
313pub(crate) fn parse_expr_opt(opt: Option<Expr>) -> SqlParseResult<Option<SqlExpr>> {
314 opt.map(|expr| parse_expr(expr, 0)).transpose()
315}
316
317/// Parse a scalar binary operator
318pub(crate) fn parse_binop(op: BinaryOperator) -> SqlParseResult<BinOp> {

Callers 4

parse_statementFunction · 0.85
parse_deleteFunction · 0.85
parse_selectFunction · 0.85
parse_selectFunction · 0.85

Calls 2

parse_exprFunction · 0.85
mapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…