使用jOOQ meta的Postgres information_schema

问题描述 投票:0回答:1

我正在学习jOOQ,并且是一个完整的菜鸟。为了将postgres查询转换为jOOQ,我在使用information_schema时遇到了一些麻烦。我尝试使用此功能:https://www.jooq.org/javadoc/latest/org.jooq/org/jooq/Meta.html没有运气。

例如,类似这样的语句

SELECT 1 FROM information_schema.tables

我希望DSLContext.meta().getSchemas()能把我带到想要的地方,但我错了。这不是InformationSchema的工作方式吗?

它作为模式对象出现,但是不确定如何作为信息模式访问它

抱歉,我是一个新手。任何帮助,将不胜感激。

postgresql jooq information-schema
1个回答
0
投票

您可能只是在寻找Meta.getTables()

© www.soinside.com 2019 - 2024. All rights reserved.