Jooq java api,在选择查询中将datetime转换为时区

Opv*_*Opv 9 jooq spring-boot

在org.jooq api中遇到一些问题.将数据保存到DB中,格式为timestamptz字段.从db中获取相同内容时,postgres中有一种方法.

select id, created_datetime at time zone 'pst' from account.

有什么方法可以实现相同的jooq?

selectStep = selectStep.select(fieldName).as(aliasName))

Opv*_*Opv 4

在 jooq api 中搜索与“AT TIME ZONE”相关的支持时。

我在github上发现这个功能在路线图上。

https://github.com/jOOQ/jOOQ/issues/7238

可能对其他人有帮助。