lintel 0.2.0
Loading...
Searching...
No Matches
Notify.h
Go to the documentation of this file.
1#ifndef LINTEL_SQLITE_NOTIFY_H
2#define LINTEL_SQLITE_NOTIFY_H
3
4#include <functional>
5#include <set>
6
7#include "Connection.h"
8
9namespace lintel {
10namespace sqlite {
14 class Notify
15 {
16 private:
17 std::string m_tableName;
18 std::function<void()> m_functionCallBack;
19 Connection &m_connection;
20
29 static void callBack(void *arg, int operation, const char *thread, const char *tableName, sqlite3_int64 changes);
30
32 void notify();
33
34 public:
41 explicit Notify(Connection &connection, std::function<void()> functionCallBack, std::string tableName);
42
45 };
46}// namespace sqlite
47
48}// namespace lintel
49#endif// LINTEL_SQLITE_NOTIFY_H
Definition Connection.h:30
Definition Notify.h:15
Notify(Connection &connection, std::function< void()> functionCallBack, std::string tableName)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9