https://github.com/bulkan/pggy
postgres terminal ui - work in progress
https://github.com/bulkan/pggy
Last synced: 11 months ago
JSON representation
postgres terminal ui - work in progress
- Host: GitHub
- URL: https://github.com/bulkan/pggy
- Owner: bulkan
- Created: 2014-05-03T13:06:08.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-06-03T07:12:14.000Z (about 12 years ago)
- Last Synced: 2025-02-25T07:41:40.369Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 493 KB
- Stars: 49
- Watchers: 6
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## pggy
piggy
[](https://nodei.co/npm/pggy/) [](https://nodei.co/npm/pggy/)
Postgres terminal UI using [blessed](https://github.com/chjj/blessed) and [Knex.js](http://knexjs.org).
## 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](https://trello.com/b/2bJirC2F/pggy)
## 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;
```json
{
"hostname": "localhost",
"password": "",
"username": "bulkan",
"database": "chinook"
}
```
## Keyboard shortcuts
While the table list has focus;
* `d` to drop the table that is highlighted (a confirmation is shown)
* `i` to show a list of columns on the currently highlighted table
* `ENTER` to run `select * from ` query on the highlighted table
Anywhere;
* `ctrl + r` anywhere to jump to the raw sql text box
* `ctrl + q` to quit
## LICENSE
MIT