Std.Db.Migrate
15 public declarations
- Applied
One that has already run, as the database records it.
- apply
&Std.Db.Driver.Client -> &Std.Db.Driver.Driver -> &Array[Std.Db.Migrate.Migration] -> Result[Int, Std.Db.Migrate.MigrationError]Bring the schema to what the program expects, through any driver.
- digestOf
&Std.Db.Migrate.Migration -> StrThe digest of a migration's statements as they stand.
- explain
&Std.Db.Migrate.MigrationError -> StrWhat a refusal says.
- migrate
Std.Db.Session.Connection -> &Array[Std.Db.Migrate.Migration] -> Result[(Int, Std.Db.Session.Connection), Std.Db.Migrate.MigrationError]Bring the schema to what the program expects, on one PostgreSQL session.
- migration
Int -> Str -> &Array[Str] -> Std.Db.Migrate.MigrationA migration from its parts.
- Migration
One change to a schema.
- MigrationError
Why a schema will not be changed.
- ordered
&Array[Std.Db.Migrate.Migration] -> Array[Std.Db.Migrate.Migration]The migrations in version order, which is the order they are considered in.
- pendingCount
&Std.Db.Migrate.Plan -> IntHow many migrations a plan would run.
- pendingVersions
&Std.Db.Migrate.Plan -> Array[Int]The versions a plan would run, in order.
- plan
&Array[Std.Db.Migrate.Migration] -> &Array[Std.Db.Migrate.Applied] -> Result[Std.Db.Migrate.Plan, Std.Db.Migrate.MigrationError]What should happen next, decided without a database.
- Plan
What should happen next.
- recordOf
Std.Db.Session.Connection -> Result[(Array[Std.Db.Migrate.Applied], Std.Db.Session.Connection), Std.Db.Session.DbError]The record a database holds.
- settled
&Std.Db.Migrate.Plan -> BoolWhether a plan has anything to do.
