All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.tcds.orm.connection.Connection.kt Maven / Gradle / Ivy

Go to download

Kotlin Simple ORM is a simple but powerful database orm for kotlin applications

There is a newer version: 0.3.14
Show newest version
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