Ai
1 Star 0 Fork 0

wangcichen/urbackup_backend

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
DatabaseCursor.h 668 Bytes
一键复制 编辑 原始数据 按行查看 历史
Martin 提交于 2019-09-13 04:21 +08:00 . Reset database cursor upon re-use
#ifndef DATABASECURSOR_H_
#define DATABASECURSOR_H_
#include "Interface/DatabaseCursor.h"
#include "Interface/Object.h"
#include "Query.h"
class CQuery;
class DatabaseCursor : public IDatabaseCursor
{
public:
DatabaseCursor(CQuery *query, int *timeoutms);
~DatabaseCursor(void);
bool next(db_single_result &res);
bool reset();
bool has_error();
virtual void shutdown();
private:
CQuery *query;
bool transaction_lock;
int tries;
int *timeoutms;
int lastErr;
bool _has_error;
bool is_shutdown;
#ifdef LOG_READ_QUERIES
ScopedAddActiveQuery *active_query;
CDatabase* db;
#endif
};
#endif //DATABASECURSOR_H_
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/wangcichen/urbackup_backend.git
git@gitee.com:wangcichen/urbackup_backend.git
wangcichen
urbackup_backend
urbackup_backend
dev

搜索帮助