View Source Yacto.Migration.File (yacto v2.0.4)

Link to this section Summary

Link to this section Functions

Link to this function

check_migration_files(files)

View Source
@spec check_migration_files([
  %Yacto.Migration.File{
    datetime_str: term(),
    dbname: term(),
    operation: term(),
    path: term(),
    schema_name: term(),
    version: term()
  }
]) :: :ok | {:error, [String.t()]}
Link to this function

check_migrations(migration_dir)

View Source
@spec check_migrations([]) :: :ok | {:error, [String.t()]}
Link to this function

get_latest_migration_file(migration_dir, module_string)

View Source
Link to this function

list_migration_files(migration_dir, module_string)

View Source
@spec list_migration_files(String.t(), String.t()) ::
  {[
     %Yacto.Migration.File{
       datetime_str: term(),
       dbname: term(),
       operation: term(),
       path: term(),
       schema_name: term(),
       version: term()
     }
   ], [String.t()]}
Link to this function

list_migration_modules(migration_dir)

View Source
Link to this function

load_migration_module(migration_dir, migration_file)

View Source
@spec load_migration_module(String.t(), %Yacto.Migration.File{
  datetime_str: term(),
  dbname: term(),
  operation: term(),
  path: term(),
  schema_name: term(),
  version: term()
}) :: {:ok, module()} | {:error, any()}
Link to this function

new(schema_name, version, dbname, operation, now)

View Source
Link to this function

save(content, migration_dir, migration_file)

View Source