pocolifo / noter-backend

0 stars 0 forks source link

Use SQLAlchemy and Alembic #7

Closed YoungerMax closed 1 year ago

YoungerMax commented 1 year ago

SQLAlchemy is an ORM for Postgres and SQL related databases. It should be used for code to be easier to read and to avoid SQL injection vulnerabilities (see #6).

Alembic is a database migrations tool. Think of a database migrations tool as git, but for the database schema. Alembic will allow us to keep track of changes to the schema, but also quickly set up a new database with our schema should we create one or an existing one fails.

deanOcoin commented 1 year ago

Thx- will incorporate Alembic

deanOcoin commented 1 year ago

Incorporated!