19 lines
432 B
C++
19 lines
432 B
C++
#ifndef DATA_H
|
|
#define DATA_H
|
|
#pragma once
|
|
#include "../thirdparty/SQLiteCpp/include/SQLiteCpp/SQLiteCpp.h"
|
|
#include "encrypt.h"
|
|
|
|
namespace data {
|
|
|
|
/*
|
|
start_db is the function that opens the database, and
|
|
if the necesary tables are not there, creates them.
|
|
db is the database, and is static to avoid multiple redefinition errors.
|
|
*/
|
|
SQLite::Database start_db();
|
|
static SQLite::Database db = start_db();
|
|
|
|
} // namespace data
|
|
|
|
#endif |