我正在尝试将 PostgresRETURNING
与 ScalikeJDBC 一起使用(请参阅https://github.com/scalikejdbc/scalikejdbc/issues/559)
假设这如何与where
子句一起使用。Thereturning(...)
是 的成员UpdateSQLBuilder
,而 awhere
返回 aConditionSQLBuilder
update(Post)
.set(sqls"${p.views}=${p.views}+${newViews}")
.where.eq(p.id,id)
.returning(p.id,p.lastUpdated, p.views) // does not work as it is not a member of ConditionSQLBuilder