public class CassandraMigrator extends Object
| Modifier and Type | Method and Description |
|---|---|
List<MigrationQuery> |
compute(MappingModel mappingModel,
Keyspace 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, Keyspace keyspace)
graphql.GraphqlErrorException - if the CQL data model can't be migratedCopyright © 2023. All rights reserved.