https://github.com/harrisoncramer/pg-playground
An easy-to-use PostgreSQL environment, designed for CSV data exploration and PostgreSQL instruction
https://github.com/harrisoncramer/pg-playground
docker postgresql shell
Last synced: about 2 months ago
JSON representation
An easy-to-use PostgreSQL environment, designed for CSV data exploration and PostgreSQL instruction
- Host: GitHub
- URL: https://github.com/harrisoncramer/pg-playground
- Owner: harrisoncramer
- Created: 2022-03-29T00:03:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-16T20:19:19.000Z (about 4 years ago)
- Last Synced: 2025-12-05T17:19:21.368Z (7 months ago)
- Topics: docker, postgresql, shell
- Language: Shell
- Homepage:
- Size: 6.85 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PG Playground
This repository is meant to be an easy-to-setup, dockerized PostgreSQL database playground that you can easily run locally. It works by converting your CSV files into tables automatically, and then importing the CSV data into PostgreSQL.
The data included here is baseball data from Sean Lahman's site.
# Requirements
1. docker and docker compose
2. csvkit
3. pgcli
# Instructions
1. Drop your CSV files into the data folder. Ensure that the file names do not contain any special characters. These will be used as the names of the PostgreSQL tables.
2. Run `./setup` file. This will create a file that PostgreSQL will use to copy the data.
3. Run `docker-compose up` to start up the database.
4. Run `bin/connect` to connect your shell to the database.