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

python: Remove coltedb dependency on psycopg2 #113

Merged
merged 1 commit into from
Apr 2, 2022
Merged

Conversation

matt9j
Copy link
Member

@matt9j matt9j commented Mar 31, 2022

psycopg2 is only needed when communicating with postgres, which should
only be required when using the metering functionality. The base
install should not require a database connection. Before this commit
the base coltedb wrapper was creating a database connection and then
passing it into the different implementation functions. This meant the
database connection library was required, even if the connection was
never needed. This commit moves the connection creation into each
prepaid billing function.

This does result in a lot of duplication, and in-general the
organization of the coltedb base script and the specialization scripts
could be improved a lot.

@matt9j matt9j requested a review from infrared0 March 31, 2022 05:25
psycopg2 is only needed when communicating with postgres, which should
only be required when using the metering functionality. The base
install should not require a database connection. Before this commit
the base coltedb wrapper was creating a database connection and then
passing it into the different implementation functions. This meant the
database connection library was required, even if the connection was
never needed. This commit moves the connection creation into each
prepaid billing function.

This does result in a lot of duplication, and in-general the
organization of the coltedb base script and the specialization scripts
could be improved a lot.
@matt9j
Copy link
Member Author

matt9j commented Mar 31, 2022

Build is likely failing due to this upstream change in github actions: actions/runner-images#4797 Will require an update to the install workflow in the action.

@matt9j matt9j merged commit 1cde6cf into main Apr 2, 2022
@matt9j matt9j deleted the devel-no-base-psycopg2 branch April 2, 2022 07:34
@github-pages github-pages bot temporarily deployed to github-pages April 2, 2022 07:34 Inactive
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.

1 participant