Package com.exasol.dbbuilder.dialects
Class Table.Builder
- java.lang.Object
-
- com.exasol.dbbuilder.dialects.Table.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder(DatabaseObjectWriter writer, Schema parentSchema, com.exasol.db.Identifier tableName)Create new instance of a builder for a database table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tablebuild()Build a newTableinstance.Table.Buildercolumn(String columnName, String columnType)Add a column to the table.
-
-
-
Constructor Detail
-
Builder
public Builder(DatabaseObjectWriter writer, Schema parentSchema, com.exasol.db.Identifier tableName)
Create new instance of a builder for a database table.- Parameters:
writer- data object writerparentSchema- parent schematableName- name of the database table
-
-
Method Detail
-
column
public Table.Builder column(String columnName, String columnType)
Add a column to the table.- Parameters:
columnName- name of the columncolumnType- column data type- Returns:
thisfor fluent programming
-
-