Cross-platform client for PostgreSQL databases
Go to file
2014-10-09 19:05:51 -05:00
bin Add table details endpoint 2014-10-09 18:48:22 -05:00
static Add static dir 2014-10-09 19:05:51 -05:00
.gitignore Initial 2014-10-08 21:26:57 -05:00
main.go Add static dir 2014-10-09 19:05:51 -05:00
Makefile Compile only for darwin 2014-10-09 09:59:19 -05:00
README.md Readme update 2014-10-09 10:00:30 -05:00

pgweb

Experiments with PostgreSQL and GO

Usage

CLI options:

-h, --host= Server hostname or IP (localhost)
-p, --port= Server port (5432)
-u, --user= Database user (postgres)
-d, --db=   Database name (postgres)

Compile

Go 1.3+ is required. To complire source execute:

go get
go build

This will produce pgweb binary in the current workdir.

API

Get databases:

GET /databases

Get current database tables:

GET /tables

Execute select query:

POST /query?query=SQL
GET  /query?query=SQL