-
Notifications
You must be signed in to change notification settings - Fork 2
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
resolves #27 port field in creds object #34
Conversation
@Cattes I added you as a reviewer to get some feedback if the handling of SSL certificates would work for you in this version. Also see my comment here: #12 (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.
I am not so familiar with dict.pop and argument passing but it looks ok as far as I can see.
Do I understand the new test fixture correctly, that you define a dict with an addtional argument local_infile = 0
which is passed on to the underlying db driver? And this results in a test failure when you try to send data not coming from a file? Is local_infile
an argument of the pymysql
driver?
With this test, I only check that additional fields in the credentials are properly handed over as connection_args to sqlalchemy.create_engine. local_infile is set to 1 by default for dbrequests.mysql, and I simply check, that I can override it. Instead of your proposition in #12, you may now simply add |
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.
LGTM.
@phainom from #34 (comment) do you have an opinion about:
|
Sorry, overlooked it. In the subclass you would override the constant with a I agree the current implementation complicates things, if there is a better solution and there is no namespace confusion I am all for it. |
Yes, in the sub-class you can simply override the constant with some import. I will test if it works and solve it directly together with the other issues in this PR. |
Notes
This still allows us to override the Connection class in any derived sub-class and brings two advantages: