[][src]Trait vemigrate::Store

pub trait Store {
    type Row: MigrationRow;
    type Error: Error + 'static;
    fn get_all(&self) -> Result<Option<Vec<Self::Row>>, Self::Error>;
fn add(&self, id: u64, up: bool) -> Result<(), Self::Error>;
fn exec(&self, q: &str) -> Result<(), Self::Error>; }

Associated Types

type Row: MigrationRow

type Error: Error + 'static

Loading content...

Required methods

fn get_all(&self) -> Result<Option<Vec<Self::Row>>, Self::Error>

fn add(&self, id: u64, up: bool) -> Result<(), Self::Error>

fn exec(&self, q: &str) -> Result<(), Self::Error>

Loading content...

Implementors

Loading content...