io.tcds.orm.connection.Connection.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of orm Show documentation
Show all versions of orm Show documentation
Kotlin Simple ORM is a simple but powerful database orm for kotlin applications
package io.tcds.orm.connection
import io.tcds.orm.OrmResultSet
import io.tcds.orm.Param
import java.sql.Statement
interface Connection {
fun begin(): Statement
fun commit(): Statement
fun rollback(): Statement
fun transaction(block: () -> T): T
fun read(sql: String, params: List> = emptyList()): Sequence
fun write(sql: String, params: List> = emptyList()): Statement
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy