com.snowplowanalytics.iglu.schemaddl.migrations
Represents error cases which can be get from MigrateFrom
function
Build migration from a sourceSchema
to the last schema in list of successiveSchemas
This method requires all intermediate schemas because we need to keep an order of properties
Build MigrationMap, a map of source Schema to it's migrations, where all source Schemas belong to a single model-revision Schema criterion
Build MigrationMap, a map of source Schema to it's migrations, where all source Schemas belong to a single model-revision Schema criterion
List of SchemaListFull to create migrations
map of each Schema to list of all available migrations
Build a map of source Schema to its OrderedSubSchemas, where all source Schemas are last version of their model group
Build a map of source Schema to its OrderedSubSchemas, where all source Schemas are last version of their model group
source Schemas
map of last version of Schema model group to its OrderedSubSchemas
Get a migration from current state to the latest known schema where error can be if schema key does not belong to these schemas or schema key is already a latest state
Get a migration from current state to the latest known schema where error can be if schema key does not belong to these schemas or schema key is already a latest state
schemaKey of current state
schemas of model group which ordered according to their version
return Either.left in case of error cases which is specified above or Migration as Either.right