Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckFunc ¶
CheckFunc is a function that checks the state of data in the database to determine if a migration will fail, and if so to report the data that is problematic so it can be fixed.
type Hook ¶
type Hook struct { CheckFunc CheckFunc RepairFunc RepairFunc // RepairDescription will describe what change running the repair function // would perform. RepairDescription string }
Hook provides a set of functions that allow for executing checks prior to executing migration statements.
type Migration ¶
Migration is a set of statements that will alter the database structure or or data.
type Problems ¶
type Problems []string
Problems are reports of data issues that were identified by a CheckFunc.
type RepairFunc ¶
RepairFunc is a function that alters data in the database to resolve issues that would prevent a migration from successfully running.
Click to show internal directories.
Click to hide internal directories.