Files
plex-playlist-old/docs/adrs/004-sql-api.md
Cliff Hill b4ee1e9113 More ADRs
Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
2023-10-24 08:14:57 -04:00

20 lines
646 B
Markdown

# 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.