Skip to main content

QueryRunner

Trait QueryRunner 

Source
pub trait QueryRunner:
    Send
    + Sync
    + 'static {
    // Required method
    fn execute(
        &self,
        query: &str,
        options: Option<ExecuteOptions>,
    ) -> Result<QueryResult>;
}
Expand description

Minimal abstraction any transport can depend on to run Lora queries.

Required Methods§

Source

fn execute( &self, query: &str, options: Option<ExecuteOptions>, ) -> Result<QueryResult>

Implementors§

Source§

impl<S> QueryRunner for Database<S>
where S: GraphStorage + GraphStorageMut + Send + Sync + 'static,