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

Fix connection with non sqlite db #392

Merged
merged 2 commits into from
Jul 28, 2024

Conversation

PierrickBrun
Copy link
Contributor

Fix #363

This MR allows to connect to non-sqlite databases.

I ran the tests after the modification and they all passed.

I also ran the tests on an empty postgresql DB and they all passed except tests/test_logging.py::test_pipeline_logs_are_correclty_captured.
All the logs appear in double, but the tasks are not doubled in the db.

The logs are not duplicated in the example app running on postgres too.

The same problem appears when I use sqlite as a file (opposed to an in-memory db). So I guess we can ignore this problem and consider postgres as working.

@samuel-108
Copy link

Any updates on this?

@lucafaggianelli
Copy link
Owner

Hey sorry, I've been absent from Plombery for a while, but I'm getting back!

Thanks for the PR, sounds good to me, @PierrickBrun can you just black-format your code so the unittests pass?

Copy link
Owner

@lucafaggianelli lucafaggianelli left a comment

Choose a reason for hiding this comment

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

Can you please fix the format in base.py? see the tests result

@lucafaggianelli lucafaggianelli merged commit f7ac799 into lucafaggianelli:main Jul 28, 2024
0 of 4 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.

Can't specify a Postgres database
3 participants