pggy
pggy copied to clipboard
postgres terminal ui - work in progress
pggy
piggy
Postgres terminal UI using blessed and Knex.js.
Introduction
Currently a work in progress. There is a few issues & enhancements that need to be done.
See the issues in here & this Trello board
Features
- At the moment Does not support editing records. Hopefully it will be implemented soon.
- viewing of tables in the database
- running raw queries

Usage
npm install -g pggy
- There is a dependency on libpq_dev that may also need to be installed before this will complete succesfully.
Create a .pggyrc file in your home (or current directory) with the following;
{
"hostname": "localhost",
"password": "",
"username": "bulkan",
"database": "chinook"
}
Keyboard shortcuts
While the table list has focus;
dto drop the table that is highlighted (a confirmation is shown)ito show a list of columns on the currently highlighted tableENTERto runselect * from <table>query on the highlighted table
Anywhere;
ctrl + ranywhere to jump to the raw sql text boxctrl + qto quit
LICENSE
MIT

