MemoryBackend (size_t keyBytes, Parameters const& keyValues, Scheduler& scheduler, beast::Journal journal) : name_ (keyValues ["path"].toStdString ()) , journal_ (journal) { if (name_.empty()) throw std::runtime_error ("Missing path in Memory backend"); db_ = &memoryFactory.open(name_); }
MemoryBackend (size_t keyBytes, Section const& keyValues, Scheduler& scheduler, beast::Journal journal) : name_ (get<std::string>(keyValues, "path")) , journal_ (journal) { if (name_.empty()) throw std::runtime_error ("Missing path in Memory backend"); db_ = &memoryFactory.open(name_); }