# Functions

NewMigratedDatastore returns a datastore whose functions will fail until the migration state says its ready.
NewVersionedDatastore sets takes a datastore, migrations, list, and target version, and returns a datastore whose functions will fail till it's migrated to the target version and a function to run migrations.