Class SQLCreateStatement.SQLCreateStatementBuilder

java.lang.Object
com.github.tadukoo.database.mysql.syntax.statement.SQLCreateStatement.SQLCreateStatementBuilder
All Implemented Interfaces:
SQLCreateStatement.AsOrColumns, SQLCreateStatement.Build, SQLCreateStatement.DatabaseName, SQLCreateStatement.ExistsOrDatabaseName, SQLCreateStatement.ExistsOrTableName, SQLCreateStatement.ForeignKeysOrBuild, SQLCreateStatement.TableName, SQLCreateStatement.Type
Enclosing class:
SQLCreateStatement

A builder to create a SQLCreateStatement. It takes the following parameters:
SQL Create Statement Parameters
Parameter Description Required or Default
type The type to be created Required
ifNotExists Whether to include IF NOT EXISTS in the statement or not Defaults to false
name The name of the table/database to be created Required
selectStmt The select statement to use to grab another table Requires either this or columns
columns The columns to create in the table Requires either this or selectStmt
foreignKeys The foreign keys to add to the table Defaults to an empty list
Version:
Alpha v.0.3
Author:
Logan Ferree (Tadukoo)