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

Refactor api database code #133

Open
ConnorBP opened this issue Dec 10, 2024 · 0 comments
Open

Refactor api database code #133

ConnorBP opened this issue Dec 10, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@ConnorBP
Copy link
Owner

The current database code opens a new connection instance in each helper, this results in constant closes and opens. We instead want to pass connections by parameter in each helper function, and let the api route that calls it manage the opening and closing of the connection. Also look for any connection leaks. If there is a return statement it must close the database first.

@ConnorBP ConnorBP added bug Something isn't working enhancement New feature or request labels Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant