mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-26 22:47:09 +01: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:
1 parent
1a312f7e7f
commit
41f5cfe663
3 files changed
+31
-4
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user