-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: Switch to mysqlclient from pymysql #8
Conversation
f28c5c0
to
03219cd
Compare
tests/test_core.py
Outdated
@@ -158,13 +158,13 @@ def test_temporal_datatypes(): | |||
metadata_obj.create_all(conn) | |||
insert = table.insert().values( | |||
column_date="2022-03-19", | |||
column_time="06:04:19.222", |
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.
We do want to keep the time here as we've had issues with this before. Is there a reason this was changed?
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.
MySQL TIME
datatype doesn't support fractional seconds by default, so I removed the fractional component. I've changed the test to use TIME(timezone=False, fsp=6)
so that fractional seconds can be tested for.
tests/test_core.py
Outdated
@@ -196,7 +196,7 @@ def test_temporal_datatypes(): | |||
) | |||
assert test_runner.records[altered_table_name][0] == { | |||
"column_date": "2022-03-19", | |||
"column_time": "06:04:19.222000", |
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.
same as above
Lint with ruff, black, isort, flake8
Uses the mysqlclient library instead of pymysql.
Fix all failing tests and run linting checks.