Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple DBs and/or hosts? #264

Open
wk8 opened this issue Nov 3, 2016 · 2 comments
Open

Multiple DBs and/or hosts? #264

wk8 opened this issue Nov 3, 2016 · 2 comments

Comments

@wk8
Copy link
Contributor

wk8 commented Nov 3, 2016

Thanks for the hard work on boss_db!

Is it possible to use boss_db in the same application to talk to 2 different DBs (eg different MySQL DBs on the same host), or even better 2 different hosts altogether?

I might be looking at this wrong, but it seems to me one can only call boss_db:start/1 once? And it seems there's only one connection pool in the whole boss_db app?

@cfclavijo
Copy link

You can configure it using the main configuration for one of the databases and the shards for others, so you can then be connected to multiple databases no matter the host or the type of the adapter. However, I had an issue when executing SQL code since it will be executed on the main database.

@asyncmind0
Copy link

Is it possible to use multiple different databases, eg: postgres and riak ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants