I am learning about jOOQ and am a complete noob. In an attempt to convert postgres queries to jOOQ I am having some trouble with the information_schema
. I attempted to use this:https://www.jooq.org/javadoc/latest/org.jooq/org/jooq/Meta.html with no luck.
For example for a statement somewhat like this
SELECT 1 FROM information_schema.tables
I expected DSLContext.meta().getSchemas()
to get me where I wanted but I was wrong. Is this not how InformationSchema works?
It comes out as a Schema object but unsure as to how to access it as an information_schema
Sorry, I am a complete novice at this. Any help would be appreciated.
You were probably just looking for Meta.getTables()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.