DbSetup-kotlin / com.ninja_squad.dbsetup_kotlin / DbSetupBuilder / insertInto

insertInto

inline fun insertInto(table: String, configure: Builder.() -> Unit): Unit

Adds an Insert operation to the DbSetup, using a lambda expression to configure it.

Example usage:

dbSetup {
    insertInto("user") {
        columns("id", "name")
        values(1, "John Doe")
        ...
    }
}


Parameters

table - the name of the table to insert into

configure - the function used to configure the insert.