[][src]Trait warden_core::dbms::driver::Driver

pub trait Driver {
    fn name(&self) -> &'static str;
fn create_initial_migration(&self, folder: &PathDir) -> Result<(), Error>;
fn open_connection(&self, url: &str) -> Result<Box<dyn Connection>, Error>; }

Required methods

fn name(&self) -> &'static str

fn create_initial_migration(&self, folder: &PathDir) -> Result<(), Error>

Create initial migration in the folder

fn open_connection(&self, url: &str) -> Result<Box<dyn Connection>, Error>

Opens a new connection to RDBMS and returns it

Loading content...

Implementors

Loading content...