Useful Commands - SeanGrady/life_tracker GitHub Wiki

Useful Commands

Alembic/SQLAlchemy

alembic revision --autogenerate -m "<MESSAGE>"

Google Cloud SQL Proxy

to launch the proxy:

./cloud_sql_proxy -instances=life-tracker-personal:us-west1:lifetracker-personal-psqldb=tcp:5432

to connect to the proxy with the psql client:

psql "host=127.0.0.1 sslmode=disable dbname=lifetracker-test user=postgres"
⚠️ **GitHub.com Fallback** ⚠️