DeveloperBreeze

Postgresql Development Tutorials, Guides & Insights

Unlock 2+ expert-curated postgresql tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your postgresql skills on DeveloperBreeze.

Code
python

Configuring SQLAlchemy with PostgreSQL on Heroku: A Quick Guide

Heroku's DATABASE_URL uses the older postgres:// scheme, which isn't compatible with the latest SQLAlchemy requirements. Starting with SQLAlchemy 1.4, postgres:// is considered deprecated and no longer supported. The explicit postgresql+psycopg2:// scheme is required.

Without this replacement, SQLAlchemy might throw an error like:

Nov 08, 2024
Read More
Tutorial

How to view tables on a PostgreSQL database hosted on Heroku

   heroku config:get DATABASE_URL -a <your-app-name>

This will display a URL in the format: postgres://<user>:<password>@<host>:<port>/<database>

Nov 06, 2024
Read More