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