Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```