New DBI API.

This commit is contained in:
David Anderson
2004-06-28 23:20:04 +00:00
parent 8671c25b2e
commit 527ca0efb7
5 changed files with 649 additions and 281 deletions

View File

@ -22,29 +22,8 @@
#import "c:\Program Files\Common Files\System\ADO\msado15.dll" rename("EOF", "ADOEOF")
#include <string>
#include <vector>
#include <oledb.h>
#include "amxxmodule.h"
class msdb
{
public:
ADODB::_ConnectionPtr cn;
ADODB::_RecordsetPtr res;
msdb() { free = true; res=NULL; resStart = false; }
~msdb() { Kill(); }
std::string user;
std::string pass;
std::string dbname;
std::string host;
std::string cstr;
std::string error;
bool Connect();
bool Kill();
bool free;
bool resStart;
};
extern std::vector<msdb*> DBList;
extern AMX_NATIVE_INFO mssql_Natives[];
#endif //_INCLUDE_MSSQL_H