28 lines
332 B
Markdown
28 lines
332 B
Markdown
|
# 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)
|
||
|
```
|
||
|
|
||
|
## API
|
||
|
|
||
|
Get database tables:
|
||
|
|
||
|
```
|
||
|
GET /tables
|
||
|
```
|
||
|
|
||
|
Execute select query:
|
||
|
|
||
|
```
|
||
|
POST /query?query=SQL
|
||
|
```
|