Struct near_store::StoreUpdate [−][src]
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]
&mut self,
column: DBCol,
key: &[u8],
value: &[u8],
rc_delta: i64
)
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]
&mut self,
column: DBCol,
key: &[u8],
value: &T
) -> Result<(), Error>
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
Auto Trait Implementations
impl !RefUnwindSafe for StoreUpdate
impl Send for StoreUpdate
impl Sync for StoreUpdate
impl Unpin for StoreUpdate
impl !UnwindSafe for StoreUpdate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,