Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(ctx context.Context, q query.Query, oldDs datastore.Batching, newDS datastore.Batching, oldType reflect.Type, migrateFunc reflect.Value) ([]datastore.Key, error)
Execute executes a database migration from datastore to another, using the given migration function
func To ¶
func To(ctx context.Context, ds datastore.Batching, migrations versioning.VersionedMigrationList, to versioning.VersionKey) (versioning.VersionKey, error)
To attempts to migrate the database to the target version, reading from current version from the predefined key and applying migrations as need to reach the target version it returns the final database version (ideally = target) and any errors encountered
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.