lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::db::Notify Class Reference

#include <Notify.h>

Public Member Functions

 Notify (Connection &connection, std::function< void()> functionCallBack, const std::string &tableName)
 

Detailed Description

Unified database notification listener wrapping PostgreSQL LISTEN/NOTIFY or SQLite update hooks.

Constructor & Destructor Documentation

◆ Notify()

lintel::db::Notify::Notify ( Connection &  connection,
std::function< void()>  functionCallBack,
const std::string &  tableName 
)
explicit

Constructs a notification listener.

Parameters
connectionthe database connection
functionCallBackcallback invoked when a notification is received
tableNamethe table to watch for changes

The documentation for this class was generated from the following file: