Refactor db
code to work with existing connections
#592
Labels
affects: architecture
Improvements or additions to architecture
affects: technical debt
Improves the state of the codebase
ready
Ready for implementation
restricted: maintainers
Only maintainers can resolve this issue
type: enhancement
New feature or request
work: backend
Related to Python, Django, and simple SQL
Milestone
Problem
In #578, we updated some of the code in the
db
module to use existing connections so that we could perform multiple operations in a single transaction. This was done in an ad-hoc basis and isn't easy to read or extend.Proposed solution
We should figure out an idiomatic and clear way to pass connections and tables around between functions and refactor the code accordingly.
This code should also involve refactoring all the code in
db/columns.py
to use connections so that:Additional context
The text was updated successfully, but these errors were encountered: