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

io.tcds.orm.statement.NotIn.kt Maven / Gradle / Ivy

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 { column.valueParam(it) }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy