pub struct ReadTransactionOwned<'a>(/* private fields */);
Expand description
Helper type for wrapping rusqlite::Transaction to only provide ReadTransaction capabilities.
Trait Implementations§
Source§impl ReadOnlyTransactionAccessor for ReadTransactionOwned<'_>
impl ReadOnlyTransactionAccessor for ReadTransactionOwned<'_>
fn readonly_transaction(&self) -> &Transaction<'_>
Auto Trait Implementations§
impl<'a> Freeze for ReadTransactionOwned<'a>
impl<'a> !RefUnwindSafe for ReadTransactionOwned<'a>
impl<'a> !Send for ReadTransactionOwned<'a>
impl<'a> !Sync for ReadTransactionOwned<'a>
impl<'a> Unpin for ReadTransactionOwned<'a>
impl<'a> !UnwindSafe for ReadTransactionOwned<'a>
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.