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

feat: Switch to mysqlclient from pymysql #8

Merged
merged 6 commits into from
Aug 24, 2023
Merged

Conversation

sebastianswms
Copy link
Collaborator

@sebastianswms sebastianswms commented Aug 15, 2023

Uses the mysqlclient library instead of pymysql.
Fix all failing tests and run linting checks.

@sebastianswms sebastianswms marked this pull request as ready for review August 16, 2023 17:30
@@ -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",
Copy link
Member

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?

Copy link
Collaborator Author

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.

@@ -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",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

tests/test_selected_columns_only.py Show resolved Hide resolved
Lint with ruff, black, isort, flake8
@sebastianswms sebastianswms merged commit 3ce8679 into main Aug 24, 2023
4 checks passed
@sebastianswms sebastianswms deleted the mysqlclient branch August 24, 2023 18:39
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