inline fun insertInto(table: String, configure: Builder.() -> Unit): Insert
Top-level function allowing to create an Insert operation by passing a lambda expression configuring it.
Example usage:
val insertUsers = insertInto("user") {
columns("id", "name")
values(1, "John Doe")
values(2, "Jane Doe")
}
table
- the name of the table to insert intoconfigure
- the function used to configure the InsertReturn
the created Insert operation
Author
JB Nizet