pub trait SqlRunner {
    // Required method
    fn execute<S: Into<String>>(&mut self, sql: S);
}
Expand description

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§

source

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

Execute the migration on a backend

Object Safety§

This trait is not object safe.

Implementors§