|
lintel 0.2.0
|
#include <Notify.h>
Public Member Functions | |
| Notify (Connection &connection, std::string tableName, std::function< void()> &callBack) | |
| ~Notify () | |
Listens for PostgreSQL NOTIFY events on a dedicated thread.
Uses its own libpq connection (libpq is not thread-safe), so the passed-in Connection is only used to derive the connection parameters.
|
explicit |
Constructs a notify listener.
| connection | the PostgreSQL connection |
| tableName | the table/channel to listen on |
| callBack | the callback to invoke on notification |
| lintel::postgresql::Notify::~Notify | ( | ) |
Destructor, signals shutdown and joins the listener thread.