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

Hyperf PostgreSQL - which packages to use? #3

Open
kingIZZZY opened this issue Aug 12, 2022 · 2 comments
Open

Hyperf PostgreSQL - which packages to use? #3

kingIZZZY opened this issue Aug 12, 2022 · 2 comments

Comments

@kingIZZZY
Copy link
Contributor

https://github.com/hyperf/database-pgsql ?
https://github.com/hyperf/db-pgsql-incubator ?
https://github.com/hyperf/database-pgsql-incubator ?
What is the correct one, and what is the difference?

Do I need hyperf/db ? hyperf/database ? hyperf/db-connection ?

Is there PDO connection pool for postgres?

Any clarification would be very appreciated 🙏 Thank you!

@limingxinleo
Copy link
Member

database

If you want to use it in Hyperf

You also need db-connecrion

@kingIZZZY
Copy link
Contributor Author

From here https://github.com/hyperf/hyperf/blob/master/docs/en/db/quick-start.md#hyperf-framework
It sounds like if I use hyperf/database then that is NOT for hyperf?

Is it maybe more correct the docs should say:

To use in Hyperf or in other frameworks

composer require hyperf/database

For Hyperf framework you also need

composer require hyperf/db-connection

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

2 participants