NodeJS migration script for old Sqlite controller.db to new controller data format.

This commit is contained in:
Adam Ierymenko 2017-01-19 10:44:26 -08:00
parent 0fb3d1d582
commit e9007b1f56
6 changed files with 348 additions and 10 deletions

View file

@ -398,7 +398,7 @@ std::string OSUtils::platformDefaultHomePath()
// Inline these massive JSON operations in one place only to reduce binary footprint and compile time
nlohmann::json OSUtils::jsonParse(const std::string &buf) { return nlohmann::json::parse(buf); }
std::string OSUtils::jsonDump(const nlohmann::json &j) { return j.dump(2); }
std::string OSUtils::jsonDump(const nlohmann::json &j) { return j.dump(1); }
uint64_t OSUtils::jsonInt(const nlohmann::json &jv,const uint64_t dfl)
{