databases now get separate handles for persistent connections

removed GetHandle from IDatabase
simplified IDatabase::Close

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40881
This commit is contained in:
David Anderson
2007-06-01 21:26:52 +00:00
parent 3ed301e9af
commit a3687d9258
4 changed files with 22 additions and 49 deletions
+3 -12
View File
@@ -24,7 +24,7 @@
#include <string.h>
#define SMINTERFACE_DBI_NAME "IDBI"
#define SMINTERFACE_DBI_VERSION 2
#define SMINTERFACE_DBI_VERSION 3
namespace SourceMod
{
@@ -409,13 +409,11 @@ namespace SourceMod
*
* It is guaranteed that an IDatabase pointer won't be destroyed until
* all open IQuery or IPreparedQuery pointers are closed.
*
* @param Only pass true if being called from an
* IHandleTypeDispatch destructor.
*
* @return True if object was destroyed, false if
* references are remaining.
*/
virtual bool Close(bool fromHndlSys=false) =0;
virtual bool Close() =0;
/**
* @brief Error code and string returned by the last operation on this
@@ -486,13 +484,6 @@ namespace SourceMod
* @return Row insertion ID of the last execute, if any.
*/
virtual unsigned int GetInsertID() =0;
/**
* @brief Returns an IDatabase Handle to this IDatabase.
*
* @return Handle_t of type IDatabase.
*/
virtual Handle_t GetHandle() =0;
};
/**