WIP: refactoring for CV2 db integration
This commit is contained in:
parent
cadfa0bc4d
commit
2af105000f
8 changed files with 2096 additions and 2031 deletions
|
@ -75,6 +75,10 @@ public:
|
|||
*/
|
||||
class DB
|
||||
{
|
||||
#ifdef ZT_CONTROLLER_USE_LIBPQ
|
||||
friend class MemberNotificationReceiver;
|
||||
friend class NetworkNotificationReceiver;
|
||||
#endif
|
||||
public:
|
||||
class ChangeListener
|
||||
{
|
||||
|
@ -146,6 +150,10 @@ public:
|
|||
_changeListeners.push_back(listener);
|
||||
}
|
||||
|
||||
virtual bool ready() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected:
|
||||
static inline bool _compareRecords(const nlohmann::json &a,const nlohmann::json &b)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue