646 B
646 B
ADR 004: select SQL API to use to build database code with
SQL should be implemented in such a manner as to be databaase-agnostic, so the correct selection of a SQL tool is essential. Further, it needs to be something that can work asynchronously in Python.
Decision
SQLAlchemy 2+ is selected.
Rationale
This is the future of SQLAlchemy, it combines the Core and ORM components making it easier to build out SQL code.
Status
Accepted
Consequences
SQLAlchemy 2's async functionality is still a bit rough, but will improve over time. As such it might be a little finicky in making things work. This is an accepted tech debt.