Skip to main content

Engine

Trait Engine 

Source
pub trait Engine {
    // Required methods
    fn name(&self) -> &str;
    fn introspect(&self, table: &TableRef) -> Result<TableSchema>;
    fn dialect(&self) -> &dyn Dialect;
    fn execute(&self, sql: &str) -> Result<Vec<Vec<String>>>;
}

Required Methods§

Source

fn name(&self) -> &str

Source

fn introspect(&self, table: &TableRef) -> Result<TableSchema>

Source

fn dialect(&self) -> &dyn Dialect

Source

fn execute(&self, sql: &str) -> Result<Vec<Vec<String>>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§