Exemple #1
0
 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_);
 }
Exemple #2
0
 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_);
 }