pub trait TableWrite: TableInstance {
    // Required methods
    fn delete<'life0, 'async_trait>(
        &'life0 self,
        txn_id: TxnId,
        key: Vec<Value>
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn upsert<'life0, 'async_trait>(
        &'life0 self,
        txn_id: TxnId,
        key: Vec<Value>,
        values: Vec<Value>
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Table write methods

Required Methods§

source

fn delete<'life0, 'async_trait>( &'life0 self, txn_id: TxnId, key: Vec<Value> ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete the given row from this table, if present.

source

fn upsert<'life0, 'async_trait>( &'life0 self, txn_id: TxnId, key: Vec<Value>, values: Vec<Value> ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Insert or update the given row.

Implementors§

source§

impl<Txn, FE> TableWrite for Table<Txn, FE>
where Txn: Transaction<FE>, FE: AsType<Node> + ThreadSafe,

source§

impl<Txn, FE> TableWrite for TableFile<Txn, FE>
where Txn: Transaction<FE>, FE: AsType<Node> + ThreadSafe,