After opening a database connection, I want to check if the database has recently been modified. I use H2, which automatically creates a database if it does not exist.
I tried this check:
db.Public.PUBLIC.getTables().isEmpty()
but returns a static list of tables (without querying the schema in the database).
I could write raw SQL to get a list of tables, but that would be specific to the database engine. Is there a universal alternative in jOOQ?
source
share