Class InsertStatement


  • public final class InsertStatement
    extends Object
    Represents an sql "INSERT" statement
    • Method Detail

      • into

        public InsertStatement into​(String tableName)
        Mark the table where we're going to insert.
        Parameters:
        tableName - table
        Returns:
        this instance for chaining
      • columns

        public InsertStatement columns​(String... columns)
        Mark the columns of the table which we're going to insert.
        Parameters:
        columns - columns
        Returns:
        this instance for chaining
      • executeUpdate

        public StatementCompletionStage<Void> executeUpdate​(Object... values)
        Executes the update.
        Parameters:
        values - values that we're going to insert
        Returns:
        statement completion stage