pub enum RetVal {
Var(String),
Prop {
var: String,
field: String,
},
Agg {
func: AggFunc,
arg: AggArg,
},
FuncCall {
name: String,
args: Vec<Operand>,
},
ScalarExpr(Operand),
}Expand description
RETURN item value: bare variable, var.field, an aggregate call, a
scalar function call, or an arbitrary scalar expression (arithmetic etc.).
Variants§
Var(String)
Prop
Agg
Single aggregate function call. When combined with non-aggregate items
in the same RETURN clause, the planner routes to GroupAggregate.
Multiple aggregate items are also supported via GroupAggregate.
FuncCall
Scalar function call in a RETURN position, e.g. toLower(n.name).
The same function set as Operand::FuncCall.
ScalarExpr(Operand)
Arbitrary scalar expression in a RETURN/WITH position, e.g. n.age + 1.
Evaluated via resolve_operand at execution time; null propagates.
Trait Implementations§
impl StructuralPartialEq for RetVal
Auto Trait Implementations§
impl Freeze for RetVal
impl RefUnwindSafe for RetVal
impl Send for RetVal
impl Sync for RetVal
impl Unpin for RetVal
impl UnsafeUnpin for RetVal
impl UnwindSafe for RetVal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more