summaryrefslogtreecommitdiff
path: root/datastore-leveldb/src/db.h
blob: 9c4c9fb5ec229b034fbbdcd1e7d3fa6096ba5532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef HAVE_DB_H
#define HAVE_DB_H

#include <leveldb/db.h>

leveldb::DB *getDB(std::string& name);

bool db_insert(std::string& name, const uint64_t timestamp, std::string& value);

void closeDB();


std::string make_key(const uint64_t timestamp);

#endif /*HAVE_DB_H*/