ecto_ensure_migrations v0.1.0 EctoEnsureMigrations
Link to this section Summary
Functions
Loads all .sql files in the given folder and returns a list of EctoEnsureMigrations.Statement
structs.
Ensures all definitions from priv/repo/ensure_migrations
are up to date.
Ensures all definitions are current for a specific folder.
Link to this section Functions
Link to this function
create(statements, repo)
Link to this function
create_statement(stm, repo)
Link to this function
drop(statements, repo)
Link to this function
drop_statement(stm, repo)
Loads all .sql files in the given folder and returns a list of EctoEnsureMigrations.Statement
structs.
Link to this function
order_statements(statements)
Link to this function
run(otp_app, repo)
Ensures all definitions from priv/repo/ensure_migrations
are up to date.
Pass the name of your otp_app
and the repo
you'd like to be used to execute the definition statements.
Link to this function
run_for_dir(path, repo)
Ensures all definitions are current for a specific folder.
Link to this function
split_statements(files_with_content)
split_statements([{binary(), binary()}]) :: [EctoEnsureMigrations.Statement.t()]