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
7{
8 void* _db;
9
10public:
11
13 virtual ~Database();
14
15 bool open(const wstring& filePath);
16 void close();
17
19
20 bool execQuery(const wstring& wSqlStr, wstring& errorMsg, vector<vector<wstring>>& results);
21 bool execQueryPaged(const wstring& wSqlStrWithoutLimitAndOrderBy,
22 int pageSize, __int64 startRow,
23 const wstring& sortByColumnName, bool isDescending,
24 wstring& errorMsg, vector<vector<wstring>>& results, __int64& totalRowCount);
25 bool execNonQuery(const wstring& wSqlStr, wstring& errorMsg);
26};
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)