public class RecoverySchemaStore extends Object implements SchemaStore
Constructor and Description |
---|
RecoverySchemaStore(snaq.db.ConnectionPool replicationConnectionPool,
String maxwellDatabaseName,
CaseSensitivity caseSensitivity) |
Modifier and Type | Method and Description |
---|---|
Schema |
getSchema()
Retrieve the current schema
If no Stored schema is found, this method should capture and save a snapshot
of the current mysql schema.
|
List<ResolvedSchemaChange> |
processSQL(String sql,
String currentDatabase,
Position position)
Process a DDL statement
Parse the given SQL, applying the changes to the schema.
|
public RecoverySchemaStore(snaq.db.ConnectionPool replicationConnectionPool, String maxwellDatabaseName, CaseSensitivity caseSensitivity)
public Schema getSchema() throws SchemaStoreException
SchemaStore
getSchema
in interface SchemaStore
SchemaStoreException
public List<ResolvedSchemaChange> processSQL(String sql, String currentDatabase, Position position) throws SchemaStoreException, InvalidSchemaError
SchemaStore
processSQL
in interface SchemaStore
sql
- The SQL of the DDL statementcurrentDatabase
- The "contextual database" of the DDL statementposition
- The position of the DDL statementSchemaStoreException
InvalidSchemaError
Copyright © 2018. All rights reserved.