Skip to main content

Executor

Trait Executor 

Source
pub trait Executor {
    // Required method
    fn query<'a>(&'a self, query: impl Into<Cow<'a, str>>) -> Query<'a, Any>;
}
Expand description

Runs SurrealQL: the database (Db) or a Transaction. Write helper functions against &impl Executor to use them in and out of transactions.

Required Methods§

Source

fn query<'a>(&'a self, query: impl Into<Cow<'a, str>>) -> Query<'a, Any>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§