WIP: refactoring for CV2 db integration

This commit is contained in:
Grant Limberg 2025-04-03 10:27:42 -07:00
parent cadfa0bc4d
commit 2af105000f
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735
8 changed files with 2096 additions and 2031 deletions

View file

@ -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)
{