SavvyUI C++ UI Library
Loading...
Searching...
No Matches
Database.h
Go to the documentation of this file.
1#pragma once
2#include <vector>
3#include <string>
4using namespace std;
5
6#include "sqlite3.h"
7
9{
10 sqlite3* _db;
11
12public:
13
15 virtual ~Database();
16
17 bool open(const wstring& filePath);
18 void close();
19
21
22 bool execQuery(const wstring& wSqlStr, wstring& errorMsg, vector<vector<wstring>>& results);
23 bool execQueryPaged(const wstring& wSqlStrWithoutLimitAndOrderBy,
24 int pageSize, __int64 startRow,
25 const wstring& sortByColumnName, bool isDescending,
26 wstring& errorMsg, vector<vector<wstring>>& results, __int64& totalRowCount);
27 bool execNonQuery(const wstring& wSqlStr, wstring& errorMsg);
28};
bool open(const wstring &filePath)
virtual ~Database()
void close()
bool isConnected()
bool execQueryPaged(const wstring &wSqlStrWithoutLimitAndOrderBy, int pageSize, __int64 startRow, const wstring &sortByColumnName, bool isDescending, wstring &errorMsg, vector< vector< wstring > > &results, __int64 &totalRowCount)
bool execNonQuery(const wstring &wSqlStr, wstring &errorMsg)
bool execQuery(const wstring &wSqlStr, wstring &errorMsg, vector< vector< wstring > > &results)
struct sqlite3 sqlite3
Definition sqlite3.h:272