FunctionArg in sqlparser::ast - Rust

pub enum FunctionArg {
    Named {
        name: Ident,
        arg: FunctionArgExpr,
        operator: FunctionArgOperator,
    },
    ExprNamed {
        name: Expr,
        arg: FunctionArgExpr,
        operator: FunctionArgOperator,
    },
    Unnamed(FunctionArgExpr),
}
Expand description

Forms of function arguments (named, expression-named, or positional).

§

name is identifier

Enabled when Dialect::supports_named_fn_args_with_expr_name returns ‘false’

Fields

The identifier name of the argument.

The argument expression or wildcard form.

The operator separating name and value.

§

name is arbitrary expression

Enabled when Dialect::supports_named_fn_args_with_expr_name returns ‘true’

Fields

The expression used as the argument name.

The argument expression or wildcard form.

The operator separating name and value.

§

An unnamed argument (positional), given by expression or wildcard.

§
§
§
§
§
§