[][src]Struct ckb_store::StoreTransaction

pub struct StoreTransaction { /* fields omitted */ }

Implementations

impl StoreTransaction[src]

pub fn insert_raw(
    &self,
    col: Col,
    key: &[u8],
    value: &[u8]
) -> Result<(), Error>
[src]

pub fn delete(&self, col: Col, key: &[u8]) -> Result<(), Error>[src]

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

pub fn get_snapshot(&self) -> StoreTransactionSnapshot<'_>[src]

pub fn get_update_for_tip_hash(
    &self,
    snapshot: &StoreTransactionSnapshot<'_>
) -> Option<Byte32>
[src]

pub fn insert_tip_header(&self, h: &HeaderView) -> Result<(), Error>[src]

pub fn insert_block(&self, block: &BlockView) -> Result<(), Error>[src]

pub fn delete_block(&self, hash: &Byte32, txs_len: usize) -> Result<(), Error>[src]

pub fn insert_block_ext(
    &self,
    block_hash: &Byte32,
    ext: &BlockExt
) -> Result<(), Error>
[src]

pub fn attach_block(&self, block: &BlockView) -> Result<(), Error>[src]

pub fn detach_block(&self, block: &BlockView) -> Result<(), Error>[src]

pub fn insert_block_epoch_index(
    &self,
    block_hash: &Byte32,
    epoch_hash: &Byte32
) -> Result<(), Error>
[src]

pub fn insert_epoch_ext(
    &self,
    hash: &Byte32,
    epoch: &EpochExt
) -> Result<(), Error>
[src]

pub fn insert_current_epoch_ext(&self, epoch: &EpochExt) -> Result<(), Error>[src]

pub fn insert_cells(
    &self,
    cells: impl Iterator<Item = (OutPoint, CellEntry, Option<CellDataEntry>)>
) -> Result<(), Error>
[src]

pub fn delete_cells(
    &self,
    out_points: impl Iterator<Item = OutPoint>
) -> Result<(), Error>
[src]

Trait Implementations

impl<'a> ChainStore<'a> for StoreTransaction[src]

type Vector = DBVector

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any

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

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

impl<T> Erased for T

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

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