mirror of
https://github.com/ttttupup/wxhelper.git
synced 2024-11-23 02:39:25 +08:00
22 lines
522 B
C++
22 lines
522 B
C++
#ifndef DB_OPERATION_H_
|
|
#define DB_OPERATION_H_
|
|
#include <windows.h>
|
|
#include <vector>
|
|
struct SqlResult {
|
|
char *column_name;
|
|
DWORD column_name_len;
|
|
char *content;
|
|
DWORD content_len;
|
|
BOOL is_blob;
|
|
};
|
|
/// @brief exec sql
|
|
/// @param db opened db
|
|
/// @param sql sql
|
|
/// @param callback callback func
|
|
/// @param data data
|
|
/// @return
|
|
int ExecuteSQL(DWORD db, const char *sql, DWORD callback, void *data);
|
|
|
|
int Select(DWORD db_hanle, const char *sql,std::vector<std::vector<std::string>> &query_result);
|
|
|
|
#endif |