Skip to main content

load

Function load 

Source
pub fn load(path: &Path) -> Result<Migration, MigrateError>
Expand description

Read and parse a migration file.

§Errors

Returns MigrateError::Io if the file is unreadable, or MigrateError::Json if its contents don’t deserialize. Also rejects an internally-inconsistent Operation::Data where reversible == true but reverse_sql is missing.