pub trait ForkQueryHost: Send + Sync {
// Required methods
fn query<'life0, 'life1, 'async_trait>(
&'life0 self,
cypher: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<QueryResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn storage(&self) -> Arc<StorageManager> ⓘ;
fn schema(&self) -> Arc<SchemaManager> ⓘ;
}Expand description
Read-side host for the diff engine and promote scans.
Implemented by uni_db::Session.
Required Methods§
Sourcefn query<'life0, 'life1, 'async_trait>(
&'life0 self,
cypher: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<QueryResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query<'life0, 'life1, 'async_trait>(
&'life0 self,
cypher: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<QueryResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Run a read-only Cypher query and return its result.
Sourcefn storage(&self) -> Arc<StorageManager> ⓘ
fn storage(&self) -> Arc<StorageManager> ⓘ
The session’s storage manager (used to read the shared UID index).
Sourcefn schema(&self) -> Arc<SchemaManager> ⓘ
fn schema(&self) -> Arc<SchemaManager> ⓘ
The session’s schema manager (labels + edge types to diff over).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".