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

Add PDO storage adapter. #157

Merged
merged 11 commits into from
Aug 5, 2024
Merged

Add PDO storage adapter. #157

merged 11 commits into from
Aug 5, 2024

Conversation

slashrsm
Copy link
Contributor

We have a use case where we need to use a database as a storage backend - yes, we are aware that this won't be as performant as Redis or APC. Unfortunately we are not able to use either of those. And we are expecting a limited number of metrics.

The provided adapter passes the standard test suite with both SQLite and MySQL. The latter obviously won't run on GH actions, but I am happy to add that configuration if the maintainers will show preparedness to merge this.

@slashrsm slashrsm marked this pull request as draft July 23, 2024 13:24
@LKaemmerling
Copy link
Member

Hey @slashrsm,

this looks amazing! Could you maybe make the CI Pass and add the new adapter to the Readme?

@slashrsm
Copy link
Contributor Author

Thank you for your feedback @LKaemmerling! I think that I fixed everything that originated in this PR. The remaining failures seem to be unrelated.

Do you want me to set up MySQL based tests in GH actions as well?

@slashrsm slashrsm marked this pull request as ready for review July 29, 2024 07:41
@LKaemmerling
Copy link
Member

Yes it would be good to have the tests for MySQL as well - maybe also we should support Postgres? (Shouldn't be a big effort)

@slashrsm
Copy link
Contributor Author

slashrsm commented Aug 2, 2024

@LKaemmerling I updated GH actions to run both SQLite and MySQL tests. It appears that you need to approve the changed job.

@LKaemmerling LKaemmerling enabled auto-merge (squash) August 5, 2024 07:57
Copy link
Member

@LKaemmerling LKaemmerling left a comment

Choose a reason for hiding this comment

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

Really great job! Thank you!

@LKaemmerling LKaemmerling merged commit 35d5a68 into PromPHP:main Aug 5, 2024
24 checks passed
@slashrsm
Copy link
Contributor Author

slashrsm commented Aug 5, 2024

Awesome! Thank you!

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