aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database
diff options
context:
space:
mode:
authorleak <leak@bitmx.net>2012-03-19 18:08:32 +0100
committerleak <leak@bitmx.net>2012-03-19 18:09:14 +0100
commit4665d5bfc456a49b10b0817db5473c3ee5c86603 (patch)
tree86d6003600d758f4db9f970b6c94620b35858f8a /src/server/shared/Database
parent178c658363bb07084c409f044c87b3073a108068 (diff)
Core/DBLayer: Remnant cleanups
Diffstat (limited to 'src/server/shared/Database')
-rwxr-xr-xsrc/server/shared/Database/DatabaseWorkerPool.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/shared/Database/DatabaseWorkerPool.h b/src/server/shared/Database/DatabaseWorkerPool.h
index b91972e5b0c..01b79c9ac58 100755
--- a/src/server/shared/Database/DatabaseWorkerPool.h
+++ b/src/server/shared/Database/DatabaseWorkerPool.h
@@ -133,6 +133,7 @@ class DatabaseWorkerPool
*/
//! Enqueues a one-way SQL operation in string format that will be executed asynchronously.
+ //! This method should only be used for queries that are only executed once, e.g during startup.
void Execute(const char* sql)
{
if (!sql)
@@ -143,6 +144,7 @@ class DatabaseWorkerPool
}
//! Enqueues a one-way SQL operation in string format -with variable args- that will be executed asynchronously.
+ //! This method should only be used for queries that are only executed once, e.g during startup.
void PExecute(const char* sql, ...)
{
if (!sql)
@@ -166,10 +168,11 @@ class DatabaseWorkerPool
}
/**
- Direct syncrhonous one-way statement methods.
+ Direct synchronous one-way statement methods.
*/
//! Directly executes a one-way SQL operation in string format, that will block the calling thread until finished.
+ //! This method should only be used for queries that are only executed once, e.g during startup.
void DirectExecute(const char* sql)
{
if (!sql)
@@ -181,6 +184,7 @@ class DatabaseWorkerPool
}
//! Directly executes a one-way SQL operation in string format -with variable args-, that will block the calling thread until finished.
+ //! This method should only be used for queries that are only executed once, e.g during startup.
void DirectPExecute(const char* sql, ...)
{
if (!sql)