Skip to content

A bash script to quickly create a Postgres user and database for testing and development.

Notifications You must be signed in to change notification settings

CodyReichert/pgdevdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

pgdevdb

Pgdevdb is a bash script that creates a postgres database and user (with password) from one command. The purpose is to create test postgres users and databases on the fly for quick testing and development. To use it, clone the repo and add pgdevdb.sh to your path.

Usage

Run pgdevdb.sh and the first argument will be the username, user password, and database name.

λ pgdevdb mytestdb

To delete the mytestdb user and database we just created, run it with the -d flag.

λ pgdevdb -d mytestdb

To login directly to the sql shell of mytestdb:

λ pgdevdb -l mytestdb

About

A bash script to quickly create a Postgres user and database for testing and development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages