forked from lix-project/lix
b3fc38bf6a
database and store.
32 lines
786 B
C++
32 lines
786 B
C++
#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 */
|