dave08
12/10/2023, 12:40 PMFROM_UNIXTIME(?)
for mysql (to be used in a where statement: a.field1 > FROM_UNIXTIME(?)
)?Toshihiro Nakamura
12/11/2023, 12:44 PMprivate fun fromUnixTime(value: Long): ColumnExpression<LocalDateTime, LocalDateTime> {
val name = "fromUnixTime"
val o1 = Operand.Argument(literal(0L), value)
return columnExpression(LocalDateTime::class, LocalDateTime::class, { it }, name, listOf(o1)) {
append("FROM_UNIXTIME(")
visit(o1)
append(")")
}
}
I’ll think about whether we can provide a better method in the next version.dave08
12/11/2023, 12:47 PM