-
Notifications
You must be signed in to change notification settings - Fork 48
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
Add support for MySQL and MariaDB #388
base: master
Are you sure you want to change the base?
Conversation
Many thanks for this contribution. For the sake of maintainability, I would appreciate some tests. I think your suggestion of basing this on |
Ok, I will try that. @apdavison How does one actually run those tests? I tried to run the postgres tests by executing
The python version is 3.6.9.
|
@apdavison I created a docker file that builds e.g. the command
runs fine. However, when I then try to run python test/system/test_mysql.py I get the following output
I tested and the same happens for the test_postgressql.py (after I did a minor change to get passeed the error mentioned above, since this PR is on MySQL I did not include that change here). I am a newcommer when it comes to docker so I don't know how I can actually run the tests and check that it works. Any help is appreciated :) |
177d603
to
42842f4
Compare
It's been some time since I ran the postgres tests (they are not run by the CI system). I'll try to find time to look at this later this week. Please ping me if you haven't heard anything by next week. |
@apdavison did you have a chance to try the postgres tests? |
I would like to use Sumatra with MySQL backend (the reason why I can't use PostGres is that central IT where I work only want to have MySQL databases on their servers). I added a patch that allows you use MySQL as backend. By testing it locally it seems to work. Would this be an interesting add-on for the sumatra project?
I am happy to write more rigorous tests, but in that case: Should it be a separate file that is basically copy of
tests/system/test_postgres.py
?