[][src]Trait butane_core::db::Backend

pub trait Backend {
    pub fn name(&self) -> &'static str;
pub fn create_migration_sql(
        &self,
        current: &ADB,
        ops: &[Operation]
    ) -> Result<String>;
pub fn connect(&self, conn_str: &str) -> Result<Connection>; }

Database backend. A boxed implementation can be returned by name via get_backend.

Required methods

pub fn name(&self) -> &'static str[src]

pub fn create_migration_sql(
    &self,
    current: &ADB,
    ops: &[Operation]
) -> Result<String>
[src]

pub fn connect(&self, conn_str: &str) -> Result<Connection>[src]

Loading content...

Implementations on Foreign Types

impl Backend for Box<dyn Backend>[src]

Loading content...

Implementors

Loading content...