Class TruncateStatement
- java.lang.Object
-
- com.mrivanplays.sqlhelper.statement.TruncateStatement
-
public final class TruncateStatement extends Object
Represents an sql "TRUNCATE" statement
-
-
Constructor Summary
Constructors Constructor Description TruncateStatement(SQLConnectionFactory connectionFactory, Executor async)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatementCompletionStage<Void>
executeUpdate()
Executes the update.TruncateStatement
table(String tableName)
Mark the table that we're going to truncate
-
-
-
Constructor Detail
-
TruncateStatement
public TruncateStatement(SQLConnectionFactory connectionFactory, Executor async)
-
-
Method Detail
-
table
public TruncateStatement table(String tableName)
Mark the table that we're going to truncate- Parameters:
tableName
- name of the table- Returns:
- this instance for chaining
-
executeUpdate
public StatementCompletionStage<Void> executeUpdate()
Executes the update.- Returns:
- statement completion stage
-
-