com.vladsch.kotlin.jdbc.SqlQuery.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-jdbc Show documentation
Show all versions of kotlin-jdbc Show documentation
A thin library that exposes JDBC API with the convenience of Kotlin and gets out of the way when not needed.
The newest version!
package com.vladsch.kotlin.jdbc
import java.sql.PreparedStatement
class SqlQuery(
statement: String,
params: List = listOf(),
namedParams: Map = mapOf()
) : SqlQueryBase(statement, params, namedParams) {
override fun toString(): String {
return "SqlQuery(statement='$statement', params=${params.map { it.value }}, namedParams=${namedParams.map { it.key to it.value.value }}, replacementMap=$replacementMap, cleanStatement='$cleanStatement')"
}
}