Class InsertBuilder
java.lang.Object
io.github.projectunified.craftdatabase.client.sql.helper.InsertBuilder
A builder for
INSERT queries-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the queryAdd columns to insert intostatic InsertBuilderCreate a new builderSet the values of a row, omit this to build the statement only, e.g. for a batch
-
Method Details
-
create
Create a new builder- Parameters:
table- the table- Returns:
- the builder
-
columns
Add columns to insert into- Parameters:
columns- the columns- Returns:
- this builder for chaining
-
values
Set the values of a row, omit this to build the statement only, e.g. for a batch- Parameters:
values- the values- Returns:
- this builder for chaining
-
build
Build the query- Returns:
- the query
-