Class MySqlTable.Builder
- java.lang.Object
-
- com.exasol.dbbuilder.dialects.Table.Builder
-
- com.exasol.dbbuilder.dialects.mysql.MySqlTable.Builder
-
- Enclosing class:
- MySqlTable
public static class MySqlTable.Builder extends Table.Builder
Builder forMySqlTables.
-
-
Field Summary
-
Fields inherited from class com.exasol.dbbuilder.dialects.Table.Builder
writer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MySqlTablebuild()Build a newMySqlTableinstance.MySqlTable.Buildercharset(String charset)Set a custom character set for the new table.MySqlTable.Buildercolumn(String columnName, String columnType)Add a column to the table.
-
-
-
Method Detail
-
column
public MySqlTable.Builder column(String columnName, String columnType)
Description copied from class:Table.BuilderAdd a column to the table.- Overrides:
columnin classTable.Builder- Parameters:
columnName- name of the columncolumnType- column data type- Returns:
thisfor fluent programming
-
charset
public MySqlTable.Builder charset(String charset)
Set a custom character set for the new table. Defaults to UTF-8.This character set is then used for the whole table down to the columns. Additionally the standard collation rules for this dataset are applied.
- Parameters:
charset- custom charset, e.g.ascii- Returns:
thisfor fluent programming
-
build
public MySqlTable build()
Build a newMySqlTableinstance.- Overrides:
buildin classTable.Builder- Returns:
- new
MySqlTableinstance
-
-