README
This commit is contained in:
parent
322ff9753b
commit
74a5887040
28
README.md
Normal file
28
README.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# 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
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user