Skip to content

Refactor to use SQLAlchemy for DB calls#127

Open
adepssimius wants to merge 1 commit intopbogre:mainfrom
adepssimius:sqlalchemy-refactor
Open

Refactor to use SQLAlchemy for DB calls#127
adepssimius wants to merge 1 commit intopbogre:mainfrom
adepssimius:sqlalchemy-refactor

Conversation

@adepssimius
Copy link
Contributor

@adepssimius adepssimius commented Sep 16, 2025

Progress for #25. I have this working with SQLAlchemy now. For now I just left the config for SQLAlchemy hardcoded to be pointed at the same sqlite database file, but the refactor makes it relatively simple to flip over to using any of the SQLAlchemy supported DBs (SQLite, Postgresql, MySQL & MariaDB, Oracle, and MS-SQL).

The next steps would be to:

  • Refactor the table creation into alembic migrations
  • Set up the application to run migrations on boot
  • Add the ability to set the DB dialect at connection time via env vars

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