dl
dl_db.h
浏览该文件的文档.
1
12#pragma once
13
14#include <string>
15
16#include "base/dl_vector2.h"
17
18struct sqlite3;
19namespace dl::DB
20{
21class Sqlite
22{
23public:
24 static Sqlite* Create()
25 {
26 Sqlite* ret = new Sqlite;
27 return ret;
28 }
29
33 bool Open(std::string_view path_name);
38 dl::Vector2<std::string> Exec(std::string_view str);
39
41private:
42 sqlite3* _data;
43};
44}
static Sqlite * Create()
定义 dl_db.h:24
dl::Vector2< std::string > Exec(std::string_view str)
执行sql语句
bool Open(std::string_view path_name)
打开数据库
2维vector