Skip to main content

ForkQueryHost

Trait ForkQueryHost 

Source
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§

Source

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.

Source

fn storage(&self) -> Arc<StorageManager>

The session’s storage manager (used to read the shared UID index).

Source

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".

Implementors§