-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
feat(mysql)!: drop support for mysql package and default to mysql2 #11766
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
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
|
Nice! Can you check if there's something related to authentication that can be removed? I remember that was the main change in the Another thing we might need to do is to flip the default for legacy spatial support to false (i.e. remove it from connection options in |
I did not used mysql for many years not, so do not have the details. Can you point me to what exactly do you mean or maybe to some documentation? I also added it to the list in #11692, so it does not get forgotten.
This is already added to #11692 I would suggest we merge it as it is, and I will tackle remaning two points in separate PRs. I would also need some help since my knowledge of mysql is quite limited. I am typically using pg |
|
Looks fine but needs testing. Btw my |
Can you share your test suite? And why it is not part of the repo? |
https://github.com/OSA413/typeorm-ultimate-test-suite
Because 1) it's my initiative, 2) it's in WIP state, 3) the dataset is very huge and 4) no one else took the initiative to help (but that's ok). I'm currently not considering including it into the main repo because it can be unstable (and you need some time to understand what's going on there). I personally use the test suite as a canary to test PRs I'm reviewing. |
Thanks for sharing. The dataset is quite large, but rest does not seem extensively big. Yet it's indeed a but hard to grasp on the first look. And if the overal stability of the suite is in question, than indeed it's hard to rely on it. Let me know what does your investigation brings as from my point of view this PR is ready to be merged. |
|
Would this be a blocker to dropping support of |
I don't think this will fix the issue with truncated error log |
|
it's worth it, you probably should continue working in the PR's branch and carry it to the point of it being good enough to merge into master (I haven't checked what's the solution to the problem with the truncated log) |
|
I don't think #11273 is related in any way to this PR (besides affecting the same driver). There were some changes in the all drivers (including MySQL) related to event handling - that's why it has some merge conflicts - I wanted to fix and merge that PR since author is busy, but realized might take more than 5-10 min to fix the conflict. Feel free to check if you have the time (you can ignore my comment there about a promisify-like helper, it was just a suggestion). I don't work with MySQL/MariaDB on a daily basis either, but if I change things I try to understand how they work before making the change. For this PR, I would remove the legacy spatial support as default and put this information (and the client change) in some "migration guide" doc page (in the Guides section). Regarding auth, I would check how it works, but likely there's not much to remove, it was just a heads up that there is something that we should check (these things will not be done by code reviewers). |
# Conflicts: # README-zh_CN.md # README_ko.md # package-lock.json # package.json
Deploying typeorm with
|
| Latest commit: |
9935523
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c3205813.typeorm.pages.dev |
| Branch Preview URL: | https://mysql2.typeorm.pages.dev |
PR Code Suggestions ✨Latest suggestions up to f0b8f3c
Previous suggestions✅ Suggestions up to commit c155f8a
✅ Suggestions up to commit ea41136
Suggestions up to commit 9935523
|
||||||||||||||||||||||||||||||||||||
gioboa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good, did you use find replace approach?
No, search and manual replace/changes. Why do you ask? |
gioboa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just out of curiosity 😅😂
gioboa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me, thank you @pkuczynski
typeorm#11766) Co-authored-by: Lucian Mocanu <alumni@users.noreply.github.com>
typeorm#11766) Co-authored-by: Lucian Mocanu <alumni@users.noreply.github.com>
typeorm#11766) Co-authored-by: Lucian Mocanu <alumni@users.noreply.github.com>
typeorm#11766) Co-authored-by: Lucian Mocanu <alumni@users.noreply.github.com>
Drop support for
mysqlpackage and default tomysql2. Removes some custom mysql driver logic and props, which does not make sense anymore.Refs #11692