public class CassandraMigrator extends Object
| Modifier and Type | Method and Description |
|---|---|
List<MigrationQuery> |
compute(MappingModel mappingModel,
io.stargate.bridge.proto.Schema.CqlKeyspaceDescribe keyspace) |
static CassandraMigrator |
forDeployment(MigrationStrategy strategy)
Creates a new instance for a deployment initiated by the user.
|
static CassandraMigrator |
forPersisted()
Creates a new instance for a GraphQL schema already stored in the database (from a previous
deployment).
|
public static CassandraMigrator forDeployment(MigrationStrategy strategy)
public static CassandraMigrator forPersisted()
public List<MigrationQuery> compute(MappingModel mappingModel, io.stargate.bridge.proto.Schema.CqlKeyspaceDescribe keyspace)
graphql.GraphqlErrorException - if the CQL data model can't be migratedCopyright © 2022. All rights reserved.