trek 0.3.1

Database migration management for Rust programs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::fmt::Display;

use postgres;

use postgres::Result;


pub trait Migration : Display {
    /// Applies this migration.
    fn up(&self, transaction: &postgres::GenericConnection) -> Result<()>;
    /// Undoes this migration.
    fn down(&self, transaction: &postgres::GenericConnection) -> Result<()>;
}