mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-07 21:01:37 +00:00
31 lines
718 B
C++
31 lines
718 B
C++
/*
|
|
* Copyright (C)
|
|
*
|
|
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
|
|
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
|
*/
|
|
|
|
#ifndef _ADHOCSTATEMENT_H
|
|
#define _ADHOCSTATEMENT_H
|
|
|
|
#include <ace/Future.h>
|
|
#include "SQLOperation.h"
|
|
|
|
typedef ACE_Future<QueryResult> QueryResultFuture;
|
|
/*! Raw, ad-hoc query. */
|
|
class BasicStatementTask : public SQLOperation
|
|
{
|
|
public:
|
|
BasicStatementTask(const char* sql);
|
|
BasicStatementTask(const char* sql, QueryResultFuture result);
|
|
~BasicStatementTask();
|
|
|
|
bool Execute();
|
|
|
|
private:
|
|
const char* m_sql; //- Raw query to be executed
|
|
bool m_has_result;
|
|
QueryResultFuture m_result;
|
|
};
|
|
|
|
#endif |