【发布时间】:2015-01-19 18:59:54
【问题描述】:
我尝试使用 anorm 将时间戳字段保存到 postgresql。在 scala 代码中存储为 java.time.Instant 实例的日期/时间(someTime 变量)
DB.withConnection() { implicit c =>
SQL("INSERT INTO t_table(some_time) values ({someTime})").on('someTime -> someTime)
}
但现在 anorm 无法使用它(播放 2.3.7)。
最好的方法是什么?
【问题讨论】:
标签: scala datetime playframework playframework-2.3 anorm