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

jvmMain.kr.jadekim.jext.exposed.dbms.functions.kt Maven / Gradle / Ivy

package kr.jadekim.jext.exposed.dbms

import org.jetbrains.exposed.sql.Expression
import org.jetbrains.exposed.sql.Function
import org.jetbrains.exposed.sql.QueryBuilder
import org.jetbrains.exposed.sql.VarCharColumnType

class Concat(val expr: Expression<*>, val str: String) : Function(VarCharColumnType()) {

    override fun toQueryBuilder(queryBuilder: QueryBuilder) = queryBuilder {
        +"CONCAT("
        +expr
        +", "
        registerArgument(VarCharColumnType(), str)
        +")"
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy