lexeme-dev / core

A project to develop novel algorithms and analysis techniques for legal research
4 stars 0 forks source link

Add SQLAlchemy and Alembic to project #28

Closed ProbablyFaiz closed 2 years ago

ProbablyFaiz commented 2 years ago

This PR installs and configures SQLAlchemy and its associated migration tool, Alembic, for use in our codebase.

IMPORTANT: in order to get this PR working with an existing database:

  1. pip install -r requirements.txt
  2. alembic stamp head

This PR maintains support for existing Peewee queries, though use of Peewee in this project is now deprecated and existing queries should be migrated over time. A proof-of-concept SQLAlchemy query is added to experiments/sqlalchemy_poc.py.

Closes #29.