https://github.com/pamelafox/postgresql-playground
A dev container for PostgreSQL with SQLAlchemy
https://github.com/pamelafox/postgresql-playground
Last synced: 11 months ago
JSON representation
A dev container for PostgreSQL with SQLAlchemy
- Host: GitHub
- URL: https://github.com/pamelafox/postgresql-playground
- Owner: pamelafox
- Created: 2023-04-28T22:33:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-09T02:40:15.000Z (almost 2 years ago)
- Last Synced: 2024-11-26T01:34:00.210Z (over 1 year ago)
- Language: Python
- Size: 7.51 MB
- Stars: 31
- Watchers: 3
- Forks: 24
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-devcontainers - PostgreSQL playground
README
# PostgreSQL Dev Container / Codespace
This is a PostgreSQL dev container for use with VS Code Remote Containers or GitHub Codespaces.
The devcontainer.json uses a docker-compose.yaml to set up a local PostgreSQL server inside the container.
For use with the local PostgreSQL server, copy `.env.devcontainer` into `.env`.
For use with an Azure PostgreSQL server, copy `.env.azure` into `.env` and adjust the host name, user name, and password.
Then run either `main_psycopg.py` or `main_sqlalchemy.py` to interact with the database.