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

How can I use multiple databases in a single connection in PostgreSQL #6333

Closed
zhiyuanzhang-unai opened this issue Jun 30, 2020 · 2 comments
Closed

Comments

@zhiyuanzhang-unai
Copy link

Issue type:

[x] question
[ ] bug report
[ ] feature request
[ ] documentation issue

Database system/driver:

[ ] cordova
[ ] mongodb
[ ] mssql
[ ] mysql / mariadb
[ ] oracle
[x] postgres
[ ] cockroachdb
[ ] sqlite
[ ] sqljs
[ ] react-native
[ ] expo

TypeORM version:

[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)

Steps to reproduce or a small repository showing the problem:

In this document: https://orkhan.gitbook.io/typeorm/docs/multiple-connections.
It states that "Using multiple databases in a single connection" "this feature is supported only in mysql and mssql databases".
Any reason it won't support Postgresql? Is it because of the Postgressql limitation? Or just didn't have time implementing this feature on Postgres?

I am working on a project which will deal with multiple databases in a postgres instance. I am trying to avoid creating multiple connections (30+ connections). It would be better that I can specify the database name in the entity class and reuse the same connection.

@guiaramos
Copy link

Please check this comment might help you: #5308 (comment)

@imnotjames
Copy link
Contributor

For questions, please check out the community slack or check TypeORM's documentation page on other support avenues - cheers!

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

No branches or pull requests

3 participants