I am using jOOQ’s awesome runtime schema mapping feature, and I have a use case where I need to drop into raw SQL to hit the MySQL INFORMATION_SCHEMA table on a runtime-mapped table. I don’t see a way in the API to query the actual schema/table name for a given table. Any chance I’m missing something in the API here? I can temporarily workaround by pattern matching on the generated sql from context.selectFrom(table).getQuery().getSQL();
but that’s very brittle!
Table<?> unmapped = ...Table<?> mapped = configuration.map(table);assertEquals("some_mapped_name", mapped.getName());
I am using jOOQ’s awesome runtime schema mapping feature, and I have a use case where I need to drop into raw SQL to hit the MySQL INFORMATION_SCHEMA table on a runtime-mapped table. I don’t see a way in the API to query the actual schema/table name for a given table. Any chance I’m missing something in the API here? I can temporarily workaround by pattern matching on the generated sql from
context.selectFrom(table).getQuery().getSQL();
but that’s very brittle!
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
DSLContext.render(table)
works great. Thanks!
--
You received this message because you are subscribed to a topic in the Google Groups "jOOQ User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jooq-user/ryr-VoiztEc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jooq-user+unsubscribe@googlegroups.com.