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

support local_infile_dir option #755

Merged
merged 1 commit into from
Feb 23, 2025
Merged

Conversation

RasmusKard
Copy link
Contributor

Adds support for MYSQL_OPT_LOAD_DATA_LOCAL_DIR in mysql_options() as the kwarg local_infile_dir. A bit safer alternative than local_infile for MySQL versions >= 8.0.21.

(P.S. I'm a bit out of my depth with this PR but tried my best following the example of a previous PR with a similar addition, if there is anything that needs changing I'm happy to do it.)

Thank you for reviewing!

Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.84%. Comparing base (e2a908b) to head (e1e1853).
Report is 28 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #755      +/-   ##
==========================================
- Coverage   88.86%   88.84%   -0.02%     
==========================================
  Files           7        7              
  Lines         548      556       +8     
==========================================
+ Hits          487      494       +7     
- Misses         61       62       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@methane methane merged commit 5b35866 into PyMySQL:main Feb 23, 2025
10 of 12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants