提交 5e1278e1 authored 作者: blu's avatar blu

init

上级 9f37a5f7
......@@ -11,7 +11,14 @@ extern "C" {
#include "../vendor/sqlite/sqlite3.h"
}
#include <string>
#include "json.hpp"
#define EV_DB_FILENAME_GENERAL "general.db"
#define EV_DB_FILENAME_LOG "log.db"
#define EV_DB_FILENAME_CONFIG "config.json"
using namespace std;
using json = nlohmann::json;
namespace DB {
......@@ -20,6 +27,8 @@ namespace DB {
int getInfo(void *info, int active, const char*fileName);
int clearTable(const char *tableName, const char* fileName);
int setInfo(void* info, const char*fileName);
int loadLocalConfigration(json &config, string fileName);
int saveLocalConfigration(json &config, string fileName);
}
#endif
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论