pub struct ReadTx<'a> { /* private fields */ }Implementations§
Source§impl ReadTx<'_>
impl ReadTx<'_>
pub fn snapshot_seq(&self) -> u64
pub async fn query( &self, project_id: &str, scope_id: &str, query: Query, ) -> Result<QueryResult, QueryError>
pub async fn query_with_options( &self, project_id: &str, scope_id: &str, query: Query, options: QueryOptions, ) -> Result<QueryResult, QueryError>
pub async fn query_batch( &self, project_id: &str, scope_id: &str, items: Vec<QueryBatchItem>, ) -> Result<Vec<QueryResult>, QueryError>
pub async fn exists( &self, project_id: &str, scope_id: &str, query: Query, ) -> Result<bool, QueryError>
pub fn explain( &self, project_id: &str, scope_id: &str, query: Query, options: QueryOptions, ) -> Result<QueryDiagnostics, QueryError>
pub async fn query_with_diagnostics( &self, project_id: &str, scope_id: &str, query: Query, options: QueryOptions, ) -> Result<QueryWithDiagnosticsResult, QueryError>
pub async fn query_page_stable( &self, project_id: &str, scope_id: &str, query: Query, cursor: Option<String>, page_size: usize, ) -> Result<QueryResult, QueryError>
pub async fn list_with_total( &self, project_id: &str, scope_id: &str, query: Query, cursor: Option<String>, offset: Option<usize>, page_size: usize, ) -> Result<ListPageResult, QueryError>
pub async fn lookup_then_hydrate( &self, project_id: &str, scope_id: &str, source_query: Query, source_key_index: usize, hydrate_query: Query, hydrate_key_column: &str, ) -> Result<(QueryResult, QueryResult), QueryError>
Auto Trait Implementations§
impl<'a> Freeze for ReadTx<'a>
impl<'a> !RefUnwindSafe for ReadTx<'a>
impl<'a> Send for ReadTx<'a>
impl<'a> Sync for ReadTx<'a>
impl<'a> Unpin for ReadTx<'a>
impl<'a> UnsafeUnpin for ReadTx<'a>
impl<'a> !UnwindSafe for ReadTx<'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