Struct tokio_postgres_migration::Migration [−][src]
pub struct Migration { /* fields omitted */ }
Implementations
impl Migration
[src]
impl Migration
[src]pub fn new(tablename: String) -> Self
[src]
pub async fn up<C: GenericClient>(
&self,
client: &mut C,
scripts: &[(&str, &str)]
) -> Result<(), Error>
[src]
&self,
client: &mut C,
scripts: &[(&str, &str)]
) -> Result<(), Error>
Migrate all scripts up
pub async fn down<C: GenericClient>(
&self,
client: &C,
scripts: &[(&str, &str)]
) -> Result<(), Error>
[src]
&self,
client: &C,
scripts: &[(&str, &str)]
) -> Result<(), Error>
Migrate all scripts down
Auto Trait Implementations
impl RefUnwindSafe for Migration
impl RefUnwindSafe for Migration
impl UnwindSafe for Migration
impl UnwindSafe for Migration