Wrapper script for common postgres command line operations.
Using basher:
$ basher install juanibiapina/pg
Or clone the repository and add the bin
folder to your path.
pg list
: list databasespg copy <origin> <target>
: make a copy of a databasepg mv <origin> <target>
: rename a databasepg kill-connections <database>
: kill all connections to a database