mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Database: Include cleanup
This commit is contained in:
@@ -18,16 +18,19 @@
|
||||
#ifndef _QUERY_CALLBACK_H
|
||||
#define _QUERY_CALLBACK_H
|
||||
|
||||
#include "QueryResult.h"
|
||||
#include "Define.h"
|
||||
#include "DatabaseEnvFwd.h"
|
||||
#include <functional>
|
||||
#include <future>
|
||||
#include <list>
|
||||
#include <queue>
|
||||
#include <utility>
|
||||
|
||||
class TC_DATABASE_API QueryCallback
|
||||
{
|
||||
public:
|
||||
explicit QueryCallback(std::future<QueryResult>&& result);
|
||||
explicit QueryCallback(std::future<PreparedQueryResult>&& result);
|
||||
explicit QueryCallback(QueryResultFuture&& result);
|
||||
explicit QueryCallback(PreparedQueryResultFuture&& result);
|
||||
QueryCallback(QueryCallback&& right);
|
||||
QueryCallback& operator=(QueryCallback&& right);
|
||||
~QueryCallback();
|
||||
@@ -60,8 +63,8 @@ private:
|
||||
|
||||
union
|
||||
{
|
||||
std::future<QueryResult> _string;
|
||||
std::future<PreparedQueryResult> _prepared;
|
||||
QueryResultFuture _string;
|
||||
PreparedQueryResultFuture _prepared;
|
||||
};
|
||||
bool _isPrepared;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user