summary refs log tree commit diff
path: root/src/db.hh
blob: 6f13eb30c813e447608a73636e6d6e935cbcaec4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __DB_H
#define __DB_H

#include <string>
#include <list>

#include "util.hh"

using namespace std;

void createDB(const string & filename, const string & dbname);

bool queryDB(const string & filename, const string & dbname,
    const string & key, string & data);

bool queryListDB(const string & filename, const string & dbname,
    const string & key, Strings & data);

void setDB(const string & filename, const string & dbname,
    const string & key, const string & data);

void setListDB(const string & filename, const string & dbname,
    const string & key, const Strings & data);

void delDB(const string & filename, const string & dbname,
    const string & key);

void enumDB(const string & filename, const string & dbname,
    Strings & keys);

#endif /* !__DB_H */