Joel
09/16/2020, 2:52 PMSELECT 1Vinicius Araujo
09/16/2020, 7:49 PMobject One : Expression<String>() {
override fun toQueryBuilder(queryBuilder: QueryBuilder) = queryBuilder { append("1") }
}Vinicius Araujo
09/16/2020, 7:50 PMslice(One)tapac
09/17/2020, 7:41 PMintLiteral and intParam functions for that, but you have to declare some fake table, like DUAL in Mysql.
object DualTable : Table("DUAL")
DualTable.slice(intLiteral(1)).selectAll()Joel
09/17/2020, 11:13 PMQuery object will always append FROM, which I believe returns the literal value for each row. I am guessing that there is no object that adheres to Query that doesn't use FROM 😬Joel
09/17/2020, 11:15 PMwrapAsQuery { intLiteral(1) } 😄