models 0.1.3

A migration management library for applications using PostgresSQL, MySQL or SQLite.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! This module is publicly accessible, but the interface can be subject to changes.
//! This module is intended for macros only.
//! Changes to elements in this module are not considered a breaking change. Do not depend directly on this module.
mod scheduler;
use once_cell::sync::Lazy;
pub(crate) use scheduler::driver::migration::Migration;
pub use scheduler::{
    table::{constraint, Column, Table},
    Scheduler,
};

pub trait Model {
    fn target() -> Table;
}

pub static SCHEDULER: Lazy<Scheduler> = Lazy::new(Scheduler::new);