[][src]Trait barrel::connectors::DatabaseExecutor

pub trait DatabaseExecutor {
    fn execute<S: Into<String>>(&mut self, sql: S);
}

A generic trait that frameworks using barrel can implement

An object of this trait can be given to a Migration object to automatically generate and run the given SQL string for a database connection which is wrapped by it

Required methods

fn execute<S: Into<String>>(&mut self, sql: S)

Execute the migration on a backend

Loading content...

Implementors

Loading content...