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

#include <leveldb/db.h>
#include <list>

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

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

void db_close();

std::list<std::string> * db_list();

std::string db_make_key(const uint64_t timestamp);

#endif /*HAVE_DB_H*/