Skip to main content

GraphQueryExecutor

Trait GraphQueryExecutor 

Source
pub trait GraphQueryExecutor: Send + Sync {
    // Required method
    fn query<'life0, 'life1, 'async_trait>(
        &'life0 self,
        database: &'life1 str,
        sql: String,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<JsonRow>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn query<'life0, 'life1, 'async_trait>( &'life0 self, database: &'life1 str, sql: String, ) -> Pin<Box<dyn Future<Output = Result<Vec<JsonRow>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Run sql against database’s tables, returning rows as JSON objects.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§