1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-19 16:47:14 +02:00

Remove query queueing mechanism from the MySQL connection handle.

This commit is contained in:
Sandu Liviu Catalin
2016-06-03 22:17:01 +03:00
parent 125088c9e3
commit 2f16d63e2a
2 changed files with 4 additions and 25 deletions

View File

@ -4,9 +4,6 @@
// ------------------------------------------------------------------------------------------------
#include "Common.hpp"
// ------------------------------------------------------------------------------------------------
#include <vector>
// ------------------------------------------------------------------------------------------------
namespace SqMod {
@ -45,9 +42,6 @@ public:
protected:
// --------------------------------------------------------------------------------------------
typedef std::vector< String > QueryList; // Container used to queue queries.
/* --------------------------------------------------------------------------------------------
* The structure that holds the data associated with a certain connection.
*/
@ -80,9 +74,6 @@ protected:
// ----------------------------------------------------------------------------------------
String mCharset; // Default connection character set.
// ----------------------------------------------------------------------------------------
QueryList mQueue; // A queue of queries to be executed in groups.
// ----------------------------------------------------------------------------------------
bool mAutoCommit; // Whether autocommit is enabled on this connection.
bool mInTransaction; // Whether the connection is in the middle of a transaction.
@ -111,15 +102,10 @@ protected:
*/
void Disconnect();
/* ----------------------------------------------------------------------------------------
* Execute a specific amount of queries from the queue.
*/
Int32 Flush(Uint32 num, Object & env, Function & func);
/* ----------------------------------------------------------------------------------------
* Execute a query on the server.
*/
Ulong Execute(CSStr query, Ulong size = 0UL);
Uint64 Execute(CSStr query, Ulong size = 0UL);
};
private: