diff options
| author | Adam Ierymenko <[email protected]> | 2018-01-09 12:39:25 -0800 |
|---|---|---|
| committer | Adam Ierymenko <[email protected]> | 2018-01-09 12:39:25 -0800 |
| commit | 9bab49d2f91fbb1d19c75e868bc04959ef9f135e (patch) | |
| tree | fdc8d9f53b14ed0eff57b5a2d0d95ad58055cb82 /controller/DB.hpp | |
| parent | 2751a6d56db675a89b7b473e162e3e1dbf430592 (diff) | |
Move DB stuff into Db.
Diffstat (limited to 'controller/DB.hpp')
| -rw-r--r-- | controller/DB.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/controller/DB.hpp b/controller/DB.hpp index 4c7a16b2..abd1483e 100644 --- a/controller/DB.hpp +++ b/controller/DB.hpp @@ -58,6 +58,26 @@ public: int64_t mostRecentDeauthTime; }; + /** + * Ensure that all network fields are present + */ + static void initNetwork(nlohmann::json &network); + + /** + * Ensure that all member fields are present + */ + static void initMember(nlohmann::json &member); + + /** + * Remove old and temporary network fields + */ + static void cleanNetwork(nlohmann::json &network); + + /** + * Remove old and temporary member fields + */ + static void cleanMember(nlohmann::json &member); + DB(EmbeddedNetworkController *const nc,const Identity &myId,const char *path); virtual ~DB(); |
