Trait butane_core::db::Backend
source · pub trait Backend {
// Required methods
fn name(&self) -> &'static str;
fn create_migration_sql(
&self,
current: &ADB,
ops: Vec<Operation>
) -> Result<String>;
fn connect(&self, conn_str: &str) -> Result<Connection>;
}
Expand description
Database backend. A boxed implementation can be returned by name via get_backend.