// NewVersionedStateStore sets takes a datastore, fsm parameters, migrations list, and target version, and returns
// an fsm whose functions will fail till it's migrated to the target version and a function to run migrations
NewVersionedStateStore sets takes a datastore, fsm parameters, migrations list, and target version, and returns
an fsm whose functions will fail till it's migrated to the target version and a function to run migrations
// NewVersionedStateStore sets takes a datastore fsm parameters migrations list and target version and returns // an fsm whose functions will fail till it ' s migrated to the target version and a function to run migrations
func NewVersionedStateStore(ds datastore.Batching, migrations versioning.VersionedMigrationList, target versioning.VersionKey) (StateStore, func(context.Context) error) {
	r := runner.NewRunner(ds, migrations, target, migrate.To)
	ss := statestore.New(namespace.Wrap(ds, datastore.NewKey(string(target))))
	return NewMigratedStateStore(ss, r), r.Migrate
}
func NewVersionedStateStore ( ds datastore . Batching , migrations versioning . VersionedMigrationList , target versioning . VersionKey ) ( StateStore , func ( context . Context ) error ) { r := runner . NewRunner ( ds , migrations , target , migrate . To ) ss := statestore . New ( namespace . Wrap ( ds , datastore . NewKey ( string ( target ) ) ) ) return NewMigratedStateStore ( ss , r ) , r . Migrate }
NewVersionedStateStore sets takes a datastore, fsm parameters, migrations list, and target version, and returns
an fsm whose functions will fail till it's migrated to the target version and a function to run migrations
NewVersionedStateStore sets takes a datastore fsm parameters migrations list and target version and returns an fsm whose functions will fail till it ' s migrated to the target version and a function to run migrations