View Source Rivet.Migration.Load (rivet v2.3.5)

Summary

Types

@type rivet_config() :: %{
  app: String.t(),
  base: atom(),
  base_path: String.t(),
  models_root: String.t(),
  opts: Keyword.t(),
  tests_root: String.t()
}
@type rivet_error() :: {:error, String.t() | atom()}
Link to this type

rivet_migration_input_any()

View Source
Link to this type

rivet_migration_input_external()

View Source
@type rivet_migration_input_external() :: %{
  external: String.t(),
  migrations: [rivet_migration_input_include()]
}
Link to this type

rivet_migration_input_include()

View Source
@type rivet_migration_input_include() :: %{include: module(), prefix: integer()}
Link to this type

rivet_migration_input_model()

View Source
@type rivet_migration_input_model() :: map()
Link to this type

rivet_migration_state()

View Source
@type rivet_migration_state() :: %{
  idx: %{required(integer()) => Rivet.Migration.t()},
  mods: %{required(atom()) => list()}
}
@type rivet_migrations() :: [Rivet.Migration.t()]
@type rivet_state_result() :: {:ok, rivet_migration_state()} | rivet_error()

Functions

Link to this function

merge_model_migrations(pass, mig, file, arg4)

View Source
Link to this function

prepare_model_config(model_migration, map)

View Source
Link to this function

prepare_project_migrations(opts, app)

View Source

External interface to get migrations ready for use by Ecto

Link to this function

to_ecto_migrations(migs)

View Source