public class MysqlSavedSchema extends Object
Constructor and Description |
---|
MysqlSavedSchema(Long serverID,
CaseSensitivity sensitivity,
Schema schema,
Position position) |
MysqlSavedSchema(Long serverID,
CaseSensitivity sensitivity,
Schema schema,
Position position,
long baseSchemaID,
List<ResolvedSchemaChange> deltas) |
MysqlSavedSchema(MaxwellContext context,
Schema schema,
Position position) |
public MysqlSavedSchema(Long serverID, CaseSensitivity sensitivity, Schema schema, Position position) throws SQLException
SQLException
public MysqlSavedSchema(MaxwellContext context, Schema schema, Position position) throws SQLException
SQLException
public MysqlSavedSchema(Long serverID, CaseSensitivity sensitivity, Schema schema, Position position, long baseSchemaID, List<ResolvedSchemaChange> deltas) throws SQLException
SQLException
public MysqlSavedSchema createDerivedSchema(Schema newSchema, Position position, List<ResolvedSchemaChange> deltas) throws SQLException
SQLException
public Long getSchemaID()
public Long save(Connection connection) throws SQLException
SQLException
public Long saveSchema(Connection conn) throws SQLException
SQLException
public static MysqlSavedSchema restore(MaxwellContext context, Position targetPosition) throws SQLException, InvalidSchemaError
SQLException
InvalidSchemaError
public static MysqlSavedSchema restore(snaq.db.ConnectionPool pool, Long serverID, CaseSensitivity caseSensitivity, Position targetPosition) throws SQLException, InvalidSchemaError
SQLException
InvalidSchemaError
public static MysqlSavedSchema restoreFromSchemaID(MysqlSavedSchema savedSchema, MaxwellContext context) throws SQLException, InvalidSchemaError
SQLException
InvalidSchemaError
protected void restoreFromSchemaID(Connection conn, Long schemaID) throws SQLException, InvalidSchemaError
SQLException
InvalidSchemaError
public Schema getSchema()
public void setSchema(Schema s)
public static void delete(Connection connection, long schema_id) throws SQLException
SQLException
public void destroy(Connection connection) throws SQLException
SQLException
public boolean schemaExists(Connection connection, long schema_id) throws SQLException
SQLException
public BinlogPosition getBinlogPosition()
public Position getPosition()
protected void handleVersionUpgrades(Connection conn) throws SQLException, InvalidSchemaError
SQLException
InvalidSchemaError
Copyright © 2018. All rights reserved.