Closed sstubbs closed 3 years ago
It is not obvious, but you may use the enums like accessiing a static field of a class:
let dialect_enum_instance = jvm.static_class("org.jooq.SQLDialect")?;
let postgres_dialect = jvm.field(&dialect_enum, "POSTGRES")?;
This should be added in the README as well I guess...
Documentation added. I guess this can be closed.
Thank you for reporting.
Hi,
This is an amazing project. I am trying to dynamically change sql dialects using jooq. The following java code works:
using j4rs I have the following working:
but when I uncomment the line:
I get the following error:
I have tried various ways passing this enum value into the set function but am not having any luck. Some help with this would be greatly appreciated.