summaryrefslogtreecommitdiffabout
path: root/src/db.h
blob: 3794eae3adbbad5565e91dd0284231a335db1244 (plain)
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
#ifndef __N_DB_H
#define __N_DB_H

#include <string>
#include <list>
#include <napkin/types.h>
#include "sqlite.h"

namespace napkin {
    using std::string;
    using std::list;

    class db_t : public sqlite::db_t {
	public:
	    string datadir;

	    db_t();

	    void store(const hypnodata_t& hd);
	    void remove(const hypnodata_t& hd);

	    void load(list<hypnodata_ptr_t>& rv,
		    const string& sql);
    };

}

#endif /* __N_DB_H */