If you really need to use `DISTINCT ON()` function...
# exposed
t
If you really need to use
DISTINCT ON()
function feel free to implement it locally:
Copy code
fun <T>Column<T>.distinctOn() = object : ExpressionWithColumnType<T?>() {
    override val columnType = this@distinctOn.columnType
    override fun toSQL(queryBuilder: QueryBuilder) = "DISTINCT ON(${this@distinctOn.toSQL(queryBuilder)})"
}