View Source mix rivet.new.model (rivet v2.4.1)

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