Class CreateStatement
- java.lang.Object
-
- com.mrivanplays.sqlhelper.statement.CreateStatement
-
public final class CreateStatement extends Object
Represents an "CREATE" sql statement
-
-
Constructor Summary
Constructors Constructor Description CreateStatement(SQLConnectionFactory connectionFactory, Executor async)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateStatement
columns(String... columns)
Mark the columns the table is going to haveStatementCompletionStage<Void>
executeUpdate()
Executes the updateCreateStatement
tableName(String name)
Mark the name of the created table.
-
-
-
Constructor Detail
-
CreateStatement
public CreateStatement(SQLConnectionFactory connectionFactory, Executor async)
-
-
Method Detail
-
tableName
public CreateStatement tableName(String name)
Mark the name of the created table.- Parameters:
name
- the name of the table which is going to be created- Returns:
- this instance for chaining
-
columns
public CreateStatement columns(String... columns)
Mark the columns the table is going to have- Parameters:
columns
- columns- Returns:
- this instance for chaining
-
executeUpdate
public StatementCompletionStage<Void> executeUpdate()
Executes the update- Returns:
- completion stage
-
-