Files
kiskaadee 4b4ba20ef8 feat(worker): implement async SQLite WAL engine, ORM model, and Alembic migrations
- Build async SQLAlchemy engine with PRAGMA journal_mode=WAL, foreign_keys=ON, and synchronous=NORMAL
- Implement DownloadJob ORM model with protobuf mapping and state transition guards
- Initialize Alembic async migrations and create initial download_jobs table schema
- Add unit test suite in tests/test_db.py covering WAL pragmas, CRUD, and state transitions
- Update todo.txt marking Priority (A) tasks complete
2026-10-13 07:26:27 -05:00

42 lines
701 B
INI

# A generic, single database configuration for worker container/package.
[alembic]
script_location = %(here)s/alembic
prepend_sys_path = src
path_separator = os
sqlalchemy.url = sqlite+aiosqlite:///data/magnetflix.sqlite3
[loggers]
keys = root,sqlalchemy,alembic
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = WARN
handlers = console
qualname =
[logger_sqlalchemy]
level = WARN
handlers =
qualname = sqlalchemy.engine
[logger_alembic]
level = INFO
handlers =
qualname = alembic
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(levelname)-5.5s [%(name)s] %(message)s
datefmt = %H:%M:%S