summaryrefslogtreecommitdiffhomepage
path: root/storage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage.cpp')
-rw-r--r--storage.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/storage.cpp b/storage.cpp
new file mode 100644
index 0000000..9dc7615
--- /dev/null
+++ b/storage.cpp
@@ -0,0 +1,17 @@
+#include "storage.h"
+
+#include "config.h"
+
+#include <SQLiteCpp/SQLiteCpp.h>
+
+Storage::Storage(const Config& config): m_config(config)
+{
+ SQLite::Database db(m_config.getDataPath() + "/whiteboard.db3", SQLite::OPEN_READWRITE|SQLite::OPEN_CREATE);
+
+ db.exec("CREATE TABLE IF NOT EXISTS documents (id INTEGER PRIMARY KEY, value TEXT)");
+}
+
+std::string Storage::getDocument()
+{
+ return "";
+}