Multiple Data Sources #458
Closed
MichalisDBA
started this conversation in
Ideas
Replies: 2 comments 3 replies
-
@MichalisDBA @thadguidry - challenge with mutli db is loading meta data. for more than one database it can take a while |
Beta Was this translation helpful? Give feedback.
3 replies
-
@MichalisDBA closing this one as the feature has been implemented @thadguidry |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I do not know if you have this on the roadmap. I'll just give you my idea on how i envision to work with multiple data sources running a single instance of db2rest.
Create a config file. Let's say
datasources.conf
Inside this configuration file have the following settings:
Then you can run db2rest like that:
java --config=datasources.conf -jar db2rest.jar
When the application starts you can query the different data sources like that
http://localhost:8090/db1/my_table/?
http://localhost:8090/db2/my_view/?
Something like that.
Beta Was this translation helpful? Give feedback.
All reactions