pub enum SetValue {
Simple(PartiqlValue),
Add(String, PartiqlValue),
Sub(String, PartiqlValue),
ListAppend(PartiqlValue, PartiqlValue),
}Expand description
A value on the right-hand side of a SET assignment. Supports simple values and binary arithmetic expressions.
Variants§
Simple(PartiqlValue)
A simple value (literal or parameter).
Add(String, PartiqlValue)
path + value — add the value to the attribute at path.
Sub(String, PartiqlValue)
path - value — subtract the value from the attribute at path.
ListAppend(PartiqlValue, PartiqlValue)
list_append(path, value) or list_append(value, path).
Trait Implementations§
impl StructuralPartialEq for SetValue
Auto Trait Implementations§
impl Freeze for SetValue
impl RefUnwindSafe for SetValue
impl Send for SetValue
impl Sync for SetValue
impl Unpin for SetValue
impl UnsafeUnpin for SetValue
impl UnwindSafe for SetValue
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