
com.zendesk.maxwell.schema.ddl.ResolvedDatabaseDrop Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maxwell Show documentation
Show all versions of maxwell Show documentation
Maxwell's daemon. Watches mysql, outputs to JSON.
package com.zendesk.maxwell.schema.ddl;
import com.zendesk.maxwell.schema.Database;
import com.zendesk.maxwell.schema.Schema;
public class ResolvedDatabaseDrop extends ResolvedSchemaChange {
public String database;
public ResolvedDatabaseDrop() { }
public ResolvedDatabaseDrop(String database) {
this.database = database;
}
@Override
public void apply(Schema schema) throws InvalidSchemaError {
Database d = schema.findDatabaseOrThrow(database);
schema.removeDatabase(d);
}
@Override
public String databaseName() {
return database;
}
@Override
public String tableName() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy