summaryrefslogtreecommitdiffabout
path: root/src/db.h
authorMichael Krelin <hacker@klever.net>2008-04-05 11:17:33 (UTC)
committer Michael Krelin <hacker@klever.net>2008-04-05 11:17:33 (UTC)
commit04fb190243442e83349f129b523ab747e58100bf (patch) (side-by-side diff)
treeddc28357fbe78b07fd3a5e0aa8088130bf305829 /src/db.h
downloadnapkin-04fb190243442e83349f129b523ab747e58100bf.zip
napkin-04fb190243442e83349f129b523ab747e58100bf.tar.gz
napkin-04fb190243442e83349f129b523ab747e58100bf.tar.bz2
Initial commit into public repository0.0
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'src/db.h') (more/less context) (ignore whitespace changes)
-rw-r--r--src/db.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/db.h b/src/db.h
new file mode 100644
index 0000000..3794eae
--- a/dev/null
+++ b/src/db.h
@@ -0,0 +1,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 */