pub struct TableMutator<'a> { /* private fields */ }Expand description
The CRUD operations on one table (TableCRUD in
packages/zql/src/mutate/crud.ts). Values are keyed by client column
name.
Implementations§
Source§impl TableMutator<'_>
impl TableMutator<'_>
Sourcepub fn insert(&self, value: &Object) -> Result<(), Error>
pub fn insert(&self, value: &Object) -> Result<(), Error>
Inserts a row unless one with its primary key exists. Columns it leaves out are null.
Sourcepub fn upsert(&self, value: &Object) -> Result<(), Error>
pub fn upsert(&self, value: &Object) -> Result<(), Error>
Inserts a row, or merges the value into the existing one.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TableMutator<'a>
impl<'a> !Send for TableMutator<'a>
impl<'a> !Sync for TableMutator<'a>
impl<'a> !UnwindSafe for TableMutator<'a>
impl<'a> Forget for TableMutator<'a>
impl<'a> Freeze for TableMutator<'a>
impl<'a> Move for TableMutator<'a>
impl<'a> Unpin for TableMutator<'a>
impl<'a> UnsafeUnpin for TableMutator<'a>
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