Struct near_store::StoreUpdate[][src]

pub struct StoreUpdate { /* fields omitted */ }

Keeps track of current changes to the database and can commit all of them to the database.

Implementations

impl StoreUpdate[src]

pub fn new(storage: Pin<Arc<dyn Database>>) -> Self[src]

pub fn new_with_tries(tries: ShardTries) -> Self[src]

pub fn update_refcount(
    &mut self,
    column: DBCol,
    key: &[u8],
    value: &[u8],
    rc_delta: i64
)
[src]

pub fn set(&mut self, column: DBCol, key: &[u8], value: &[u8])[src]

pub fn set_ser<T: BorshSerialize>(
    &mut self,
    column: DBCol,
    key: &[u8],
    value: &T
) -> Result<(), Error>
[src]

pub fn delete(&mut self, column: DBCol, key: &[u8])[src]

pub fn delete_all(&mut self, column: DBCol)[src]

pub fn merge(&mut self, other: StoreUpdate)[src]

Merge another store update into this one.

pub fn merge_transaction(&mut self, transaction: DBTransaction)[src]

Merge DB Transaction.

pub fn commit(self) -> Result<(), Error>[src]

Trait Implementations

impl Debug for StoreUpdate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,