Skip to main content

Module loader

Module loader 

Source
Expand description

Load, validate and write JSON migration files.

Structs§

MigrationGraph
Graph of visible (non-replaced) migrations, in topological order.

Functions§

is_applied
Whether migration should be treated as already applied given history.
load_dir
Load every *.json file in dir. Missing directories yield an empty list. Each file’s checksum is recomputed from its content.
write_migration
Pretty-print migration as {id}.json in dir.