gorrion/loader
Loads migration SQL files from disk. Convention: {NNN}{name}.sql (up) / {NNN}{name}_down.sql (optional rollback)
Values
pub fn load_migrations(
directory: String,
) -> Result(List(types.Migration), types.MigrationError)
Load all migrations from .sql files in the given directory. Scans for *.sql files (excluding *_down.sql), and optionally pairs each with a *_down.sql companion. If no down file exists, down = “”.