java.lang.Object
io.github.projectunified.craftdatabase.client.sql.helper.DeleteBuilder

public final class DeleteBuilder extends Object
A builder for DELETE queries
  • Method Details

    • create

      public static DeleteBuilder create(String table)
      Create a new builder
      Parameters:
      table - the table
      Returns:
      the builder
    • where

      public DeleteBuilder where(String condition, Object... values)
      Add a condition, joined to the previous ones with AND
      Parameters:
      condition - the condition, the ? placeholders must match the values
      values - the values for the placeholders, omitted to provide them later in a batch
      Returns:
      this builder for chaining
    • build

      public Query build()
      Build the query
      Returns:
      the query