sandbox-libpq/connect/readme.md

20 lines
302 B
Markdown
Raw Normal View History

2023-04-05 15:58:29 +02:00
* install dependencies on Debian Bullseye
```
sudo apt install libpq-dev --no-install-recommends
```
* build
```
make
```
* run
```
./main 'postgresql://<user>:<secret>@<host>:<port>/<database>'
```
* or run
```
./main "host=<host> port=<port> user=<user> password=<<secret>> dbname=<database>"
```