pgweb/README.md

38 lines
470 B
Markdown
Raw Normal View History

2014-10-08 21:29:43 -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)
```
2014-10-08 21:54:49 -05:00
## Compile
Go 1.3+ is required. To complire source execute:
```
go build
```
This will product `pgweb` binary in the current workdir.
2014-10-08 21:29:43 -05:00
## API
Get database tables:
```
GET /tables
```
Execute select query:
```
POST /query?query=SQL
```