io.tcds.orm.statement.NotIn.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.statement
import io.tcds.orm.Column
import io.tcds.orm.Condition
import io.tcds.orm.Param
data class NotIn(val column: Column, private val values: List) : Condition {
override fun toStmt(): String = "${column.name} NOT IN (${values.joinToString(",") { "?" }})"
override fun toSql(): String = "${column.name} NOT IN (${values.joinToString(", ") { "`$it`" }})"
override fun params(): List> = values.map { Param(column, it) }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy