blob: 9dc7615833dfb259e0e6f06db066543e6a4a0bed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 "";
}
|