supercargo / guice-persist-jooq

Guice-persist extension for using jOOQ based persistence layer
Apache License 2.0
22 stars 10 forks source link

Multiple database support #8

Open forestbelton opened 7 years ago

forestbelton commented 7 years ago

Is it possible to use this library with multiple databases at the same time?

supercargo commented 7 years ago

As is you would need to provide your own alternative to JooqPersistModule, specifically since that module binds JooqPersistService in @Singleton scope. After that AFAIK all of Guice's facilities to support you should be available (scoping, @Named, multi-bindings, or whatever)