JOOQ 物化视图

huangapple go评论81阅读模式
英文:

JOOQ materialized views

问题

这是否可能使用JOOQ生成器创建物化视图?就像这样:

DSL.createMaterializedView().execute()
英文:

is it possible to create materialized views using the JOOQ builder? Something like this

DSL.createMaterializedView().execute()

答案1

得分: 3

在 jOOQ 3.14 中尚不支持此功能:https://github.com/jOOQ/jOOQ/issues/9483

但是您可以使用纯SQL模板化来绕过此限制,以至少在语句中获得某种类型的安全性:

ctx.execute("create materialized view view_name as {0}", select);
英文:

In jOOQ 3.14, not yet: https://github.com/jOOQ/jOOQ/issues/9483

But you can use plain SQL templating to work around this limitation, to at least get some type safety in your statement:

ctx.execute("create materialized view view_name as {0}", select);

huangapple
  • 本文由 发表于 2020年9月25日 23:28:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/64067086.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定