sql_from_models/private/mod.rs
1//! This module is publicly accessible, but the interface can be subject to changes.
2//! This module is intended for macros only.
3//! Changes to elements in this module are not considered a breaking change. Do not depend directly on this module.
4pub(crate) mod scheduler;
5use once_cell::sync::Lazy;
6pub(crate) use scheduler::driver::migration::Migration;
7pub use scheduler::{
8 table::{constraint, Column, Table},
9 Scheduler,
10};
11
12pub trait Model {
13 fn target() -> Table;
14}
15
16pub static SCHEDULER: Lazy<Scheduler> = Lazy::new(Scheduler::new);