Sets joda-time DateTime as statement parameter.
Sets joda-time DateTime as statement parameter.
For null
value, setNull
with TIMESTAMP
is called on statement.
import org.joda.time.DateTime SQL("UPDATE tbl SET modified = {d}").on('d -> new DateTime())
Sets joda-time Instant as statement parameter.
Sets joda-time Instant as statement parameter.
For null
value, setNull
with TIMESTAMP
is called on statement.
import org.joda.time.Instant SQL("UPDATE tbl SET modified = {d}").on('d -> new Instant())
Sets a local date/time on statement.
Sets a local date/time on statement.
import org.joda.time.LocalDateTime SQL("SELECT * FROM Test WHERE time < {b}").on('b -> LocalDateTime.now)
Sets a local date on statement.
Sets a local date on statement.
import org.joda.time.LocalDate SQL("SELECT * FROM Test WHERE time < {b}").on('b -> LocalDate.now)