Package com.zendesk.maxwell.schema
Class Database
- java.lang.Object
-
- com.zendesk.maxwell.schema.Database
-
public class Database extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTable(Table table)
Table
buildTable(String name, String charset)
Table
buildTable(String name, String charset, List<ColumnDef> list, List<String> pks)
Database
copy()
void
diff(List<String> diffs, Database other, String nameA, String nameB)
Table
findTable(String name)
Table
findTableOrThrow(String table)
String
getCharset()
String
getName()
List<Table>
getTableList()
List<String>
getTableNames()
boolean
hasTable(String name)
void
removeTable(String name)
void
setCharset(String charset)
void
setSensitivity(CaseSensitivity sensitivity)
-
-
-
Method Detail
-
findTableOrThrow
public Table findTableOrThrow(String table) throws InvalidSchemaError
- Throws:
InvalidSchemaError
-
hasTable
public boolean hasTable(String name)
-
removeTable
public void removeTable(String name)
-
copy
public Database copy()
-
getCharset
public String getCharset()
-
setCharset
public void setCharset(String charset)
-
getName
public String getName()
-
addTable
public void addTable(Table table)
-
buildTable
public Table buildTable(String name, String charset, List<ColumnDef> list, List<String> pks)
-
setSensitivity
public void setSensitivity(CaseSensitivity sensitivity)
-
-