Skip to main content

cufflink_migrate/
lib.rs

1//! SQL migrations of a service: which files a directory holds, what a
2//! history table records, and what is left to apply. Checksums, the
3//! history table and the rows written to it are refinery's, so a history
4//! refinery began is continued and refinery reads one begun here.
5//!
6//! Nothing here touches a database; the runners that do share these rules.
7
8mod exec;
9mod history;
10mod lock;
11mod plan;
12mod scan;
13
14pub use exec::{
15    applied_rows, escaped, interrupted_builds, lock_key, record_statement, Escape, Standing,
16    Timeouts, INVALID_INDEXES, STANDING, TRY_LOCK, UNLOCK,
17};
18pub use history::{
19    applied_on_now, history_ddl, history_version, parse_applied, Applied, QualifiedName,
20    HISTORY_DDL,
21};
22pub use lock::{legacy_table_lock_key, platform_key, platform_lock_key};
23pub use plan::{checksum, plan, Plan, PlanError};
24pub use scan::{scan_dir, scan_files, MigrationFile, ScanError};