英文:
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);
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论