Companion

object Companion

Functions

Link copied to clipboard
fun concat(vararg sqls: Sql): Sql
fun concat(sqls: List<Sql>): Sql
Link copied to clipboard
fun create(transactions: List<List<String>>): Sql

Utility method to create a Sql object without empty statements/transactions, and appending semicolons when needed.

Link copied to clipboard
fun empty(): Sql
Link copied to clipboard
fun of(statement: String): Sql

Convenience method for indicating intent. Equivalent to calling transactionally or .separately with the same string.

Link copied to clipboard
fun separately(vararg statements: String): Sql

fun separately(statements: List<String>): Sql

Execute each statement as its own transaction.

Link copied to clipboard
fun transactionally(vararg statements: String): Sql

fun transactionally(statements: List<String>): Sql

Execute a list of SQL statements in a single transaction.