// NewRunner returns a new runner instance for the given datastore, migrations, and target
NewRunner returns a new runner instance for the given datastore, migrations, and target
// NewRunner returns a new runner instance for the given datastore migrations and target
func NewRunner(ds datastore.Batching, migrations versioning.VersionedMigrationList, target versioning.VersionKey, runMigrations RunMigrationsFunc) *Runner {
	return &Runner{
		ds:             ds,
		migrations:     migrations,
		target:         target,
		runMigrations:  runMigrations,
		migrationsDone: make(chan struct{}),
	}
}
func NewRunner ( ds datastore . Batching , migrations versioning . VersionedMigrationList , target versioning . VersionKey , runMigrations RunMigrationsFunc ) * Runner { return & Runner { ds : ds , migrations : migrations , target : target , runMigrations : runMigrations , migrationsDone : make ( chan struct { } ) , } }
NewRunner returns a new runner instance for the given datastore, migrations, and target
NewRunner returns a new runner instance for the given datastore migrations and target