[−][src]Struct ckb_store::StoreTransaction
Implementations
impl StoreTransaction
[src]
pub fn insert_raw(
&self,
col: Col,
key: &[u8],
value: &[u8]
) -> Result<(), Error>
[src]
&self,
col: Col,
key: &[u8],
value: &[u8]
) -> Result<(), Error>
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]
&self,
snapshot: &StoreTransactionSnapshot<'_>
) -> Option<Byte32>
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]
&self,
block_hash: &Byte32,
ext: &BlockExt
) -> Result<(), Error>
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]
&self,
block_hash: &Byte32,
epoch_hash: &Byte32
) -> Result<(), Error>
pub fn insert_epoch_ext(
&self,
hash: &Byte32,
epoch: &EpochExt
) -> Result<(), Error>
[src]
&self,
hash: &Byte32,
epoch: &EpochExt
) -> Result<(), Error>
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]
&self,
cells: impl Iterator<Item = (OutPoint, CellEntry, Option<CellDataEntry>)>
) -> Result<(), Error>
pub fn delete_cells(
&self,
out_points: impl Iterator<Item = OutPoint>
) -> Result<(), Error>
[src]
&self,
out_points: impl Iterator<Item = OutPoint>
) -> Result<(), Error>
Trait Implementations
impl<'a> ChainStore<'a> for StoreTransaction
[src]
type Vector = DBVector
fn cache(&'a self) -> Option<&'a StoreCache>
[src]
fn get(&self, col: Col, key: &[u8]) -> Option<Self::Vector>
[src]
fn get_iter(&self, col: Col, mode: IteratorMode<'_>) -> DBIter<'_>
[src]
fn cell_provider(&self) -> CellProviderWrapper<'_, Self>
[src]
fn get_block(&'a self, h: &Byte32) -> Option<BlockView>
[src]
fn get_block_header(&'a self, hash: &Byte32) -> Option<HeaderView>
[src]
fn get_block_body(&'a self, hash: &Byte32) -> Vec<TransactionView>
[src]
fn get_block_txs_hashes(&'a self, hash: &Byte32) -> Vec<Byte32>
[src]
fn get_block_proposal_txs_ids(
&'a self,
hash: &Byte32
) -> Option<ProposalShortIdVec>
[src]
&'a self,
hash: &Byte32
) -> Option<ProposalShortIdVec>
fn get_block_uncles(&'a self, hash: &Byte32) -> Option<UncleBlockVecView>
[src]
fn get_block_ext(&'a self, block_hash: &Byte32) -> Option<BlockExt>
[src]
fn get_block_hash(&'a self, number: BlockNumber) -> Option<Byte32>
[src]
fn get_block_number(&'a self, hash: &Byte32) -> Option<BlockNumber>
[src]
fn is_main_chain(&'a self, hash: &Byte32) -> bool
[src]
fn get_tip_header(&'a self) -> Option<HeaderView>
[src]
fn get_transaction(&'a self, hash: &Byte32) -> Option<(TransactionView, Byte32)>
[src]
fn get_transaction_with_info(
&'a self,
hash: &Byte32
) -> Option<(TransactionView, TransactionInfo)>
[src]
&'a self,
hash: &Byte32
) -> Option<(TransactionView, TransactionInfo)>
fn get_transaction_info(&'a self, hash: &Byte32) -> Option<TransactionInfo>
[src]
fn get_cell(&'a self, out_point: &OutPoint) -> Option<CellMeta>
[src]
fn get_cell_data(&'a self, out_point: &OutPoint) -> Option<(Bytes, Byte32)>
[src]
fn get_current_epoch_ext(&'a self) -> Option<EpochExt>
[src]
fn get_epoch_ext(&'a self, hash: &Byte32) -> Option<EpochExt>
[src]
fn get_epoch_index(&'a self, number: EpochNumber) -> Option<Byte32>
[src]
fn get_block_epoch_index(&'a self, block_hash: &Byte32) -> Option<Byte32>
[src]
fn get_block_epoch(&'a self, hash: &Byte32) -> Option<EpochExt>
[src]
fn is_uncle(&'a self, hash: &Byte32) -> bool
[src]
fn get_uncle_header(&'a self, hash: &Byte32) -> Option<HeaderView>
[src]
fn block_exists(&'a self, hash: &Byte32) -> bool
[src]
fn get_cellbase(&'a self, hash: &Byte32) -> Option<TransactionView>
[src]
fn next_epoch_ext(
&'a self,
consensus: &Consensus,
last_epoch: &EpochExt,
header: &HeaderView
) -> Option<EpochExt>
[src]
&'a self,
consensus: &Consensus,
last_epoch: &EpochExt,
header: &HeaderView
) -> Option<EpochExt>
fn get_packed_block(&'a self, hash: &Byte32) -> Option<Block>
[src]
fn get_packed_block_header(&'a self, hash: &Byte32) -> Option<Header>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for StoreTransaction
impl Send for StoreTransaction
impl Sync for StoreTransaction
impl Unpin for StoreTransaction
impl !UnwindSafe for StoreTransaction
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,