1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-09-18 10:17:19 +02:00

Added options to control the memory allocated for the query queue.

Fixed const-correctness in several methods of the SQLite connection.
This commit is contained in:
Sandu Liviu Catalin
2016-03-23 05:50:58 +02:00
parent 1a312f7e7f
commit 41f5cfe663
3 changed files with 31 additions and 4 deletions

View File

@@ -244,6 +244,15 @@ void Connection::CopyToDatabase(const Connection & db)
TakeSnapshot(db.m_Handle);
}
// ------------------------------------------------------------------------------------------------
void Connection::ReserveQueue(Uint32 num)
{
// Validate the handle
Validate();
// Perform the requested operation
m_Handle->mQueue.reserve(m_Handle->mQueue.size() + num);
}
// ------------------------------------------------------------------------------------------------
Int32 Connection::Flush(Uint32 num)
{