pub struct Transaction<'h, H> { /* private fields */ }
Implementations§
Source§impl<H> Transaction<'_, H>
impl<H> Transaction<'_, H>
pub fn touch_for_read(&mut self, key: &[u8]) -> Result<Value>
Source§impl<'h, H> Transaction<'h, H>
impl<'h, H> Transaction<'h, H>
pub fn handle(&self) -> &Handle
pub fn apply_limits(&mut self) -> Result<()>
pub fn new(tx: Transaction<'h>, handle: H) -> Self
pub fn rename_value( &mut self, value: &Value, new_key: Vec<u8>, ) -> PubResult<bool>
pub fn rename_item(&mut self, from: &[u8], to: &[u8]) -> PubResult<Timestamp>
pub fn delete_key(&mut self, key: &[u8]) -> Result<Option<PossumStat>>
pub fn evict_values(&mut self, target_bytes: u64) -> Result<()>
Trait Implementations§
Source§impl<H> ReadOnlyTransactionAccessor for Transaction<'_, H>
impl<H> ReadOnlyTransactionAccessor for Transaction<'_, H>
fn readonly_transaction(&self) -> &Transaction<'_>
Auto Trait Implementations§
impl<'h, H> Freeze for Transaction<'h, H>where
H: Freeze,
impl<'h, H> !RefUnwindSafe for Transaction<'h, H>
impl<'h, H> !Send for Transaction<'h, H>
impl<'h, H> !Sync for Transaction<'h, H>
impl<'h, H> Unpin for Transaction<'h, H>where
H: Unpin,
impl<'h, H> !UnwindSafe for Transaction<'h, H>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReadTransaction for Twhere
T: ReadOnlyTransactionAccessor,
impl<T> ReadTransaction for Twhere
T: ReadOnlyTransactionAccessor,
fn file_values( &self, file_id: FileId, ) -> Result<FileValues<'_, CachedStatement<'_>>>
fn sum_value_length(&self) -> Result<u64>
Source§fn query_last_end_offset(&self, file_id: &FileId, offset: u64) -> Result<u64>
fn query_last_end_offset(&self, file_id: &FileId, offset: u64) -> Result<u64>
Returns the end offset of the last active value before offset in the same file.
Source§fn next_value_offset(
&self,
file_id: &FileId,
min_offset: u64,
) -> Result<Option<u64>>
fn next_value_offset( &self, file_id: &FileId, min_offset: u64, ) -> Result<Option<u64>>
Returns the next value offset with at least min_offset.