Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kayess/pqxx-async
Examples of using the asynchronous features of libpqxx
https://github.com/kayess/pqxx-async
Last synced: 9 days ago
JSON representation
Examples of using the asynchronous features of libpqxx
- Host: GitHub
- URL: https://github.com/kayess/pqxx-async
- Owner: KayEss
- License: bsl-1.0
- Created: 2021-10-31T04:39:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-28T06:06:39.000Z (about 1 year ago)
- Last Synced: 2024-05-01T21:17:05.819Z (7 months ago)
- Language: Shell
- Size: 37.1 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_1_0.txt
Awesome Lists containing this project
README
# Asynchronous pqxx
This is just a little example project for how to use the asynchronous networking features of libpqxx with my C++ coroutine libraries. A recent clang or gcc compiler is required.
## Trying it out
```bash
git clone [email protected]:KayEss/pqxx-async.git --recursive
cd pqxx-async
cmake -B build.tmp .
make -C build.tmp
```Further examples can be found in [config-builds](./config-builds).
The example can be run straight from the build directory:
```bash
./build.tmp/examples/simple
```Connection options can be provided through the environment as described in the libpq documentation.
```bash
PGUSER=postgres ./build.tmp/examples/simple
```