-
Notifications
You must be signed in to change notification settings - Fork 892
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
Depend on doctrine/dbal instead of cakephp/database #2217
Comments
Currently, phinx serves as a direct internal dependency of https://github.com/cakephp/migrations and CakePHP apps. |
On the other hand I use Phinx in Symfony-based app and probalby some users uses Phinx without any framework.
IMO only dependencies will (should) change, not behavior of Phinx, so no change from user's POV.
Actually I don't know now, because I don't started PR yet, but DBAL is quite mature and popular, so there should not be any problems. |
I don't think a PR is welcome here. I don't think the change would be merged. There isn't any value for the maintainers. |
@othercorey what about value for users? Less dependencies is better. I think that there is option to do another abstraction layer, Phinx's abstraction will provide interface which can be implemented by Cake's db abstraction, DBAL and actually any lib that will be interested. Will it be accepted? |
Right now, the link to For reference, I use phinx with a codebase that doesn't use any framework nor do I use the query builder feature, and so installing doctrine or cakephp is a waste for me |
For me, Phinx without any db abstraction dependency is even better. I found that there is aura/sqlquery which states that:
Maybe using it (or any other lib that provides "only" query builder) instead of |
To be clear, |
Do you think it will be easier to make |
I'm dropping any objections to this change. I assume it will be part of a (correct this time) 1.0 release. Feel free to discuss any goals that are best for phinx without me chiming in on cake dev compatibility :). |
It turns out that better option is to move forward #1754 and then this issue can be closed, because there will be no gain in changing underlying library for query builder. |
Hello guys, I would like to propose change database abstraction to
doctrine/dbal
.Look at
cakephp/database
's (v5) dependency tree:vs DBAL's:
For me, it looks like too much dependencies for a database abstraction (for example Cake's
core
which needs DI container), while DBAL has only what is needed: small deprecations wrapper and lib for events.Would You consider changing db abstraction to DBAL? I can do a PR.
The text was updated successfully, but these errors were encountered: