Trait sqllogictest::runner::DB

source ·
pub trait DB {
    type Error: Error + Send + Sync + 'static;
    type ColumnType: ColumnType;

    // Required method
    fn run(
        &mut self,
        sql: &str
    ) -> Result<DBOutput<Self::ColumnType>, Self::Error>;

    // Provided method
    fn engine_name(&self) -> &str { ... }
}
Expand description

The database to be tested.

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

The error type of SQL execution.

source

type ColumnType: ColumnType

The type of result columns

Required Methods§

source

fn run(&mut self, sql: &str) -> Result<DBOutput<Self::ColumnType>, Self::Error>

Run a SQL query and return the output.

Provided Methods§

source

fn engine_name(&self) -> &str

Engine name of current database.

Implementors§