Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

MysqlDb.cc File Reference

#include "MysqlDb.h"
#include "StDbManager.hh"
#include "stdb_streams.h"
#include "StDbDefaults.hh"
#include "StDbManagerImpl.hh"

Go to the source code of this file.

Defines

#define CR_MIN_ERROR   2000 /* For easier client code */
#define CR_MAX_ERROR   2999
#define CR_UNKNOWN_ERROR   2000
#define CR_SOCKET_CREATE_ERROR   2001
#define CR_CONNECTION_ERROR   2002
#define CR_CONN_HOST_ERROR   2003
#define CR_IPSOCK_ERROR   2004
#define CR_UNKNOWN_HOST   2005
#define CR_SERVER_GONE_ERROR   2006
#define CR_VERSION_ERROR   2007
#define CR_OUT_OF_MEMORY   2008
#define CR_WRONG_HOST_INFO   2009
#define CR_LOCALHOST_CONNECTION   2010
#define CR_TCP_CONNECTION   2011
#define CR_SERVER_HANDSHAKE_ERR   2012
#define CR_SERVER_LOST   2013
#define CR_COMMANDS_OUT_OF_SYNC   2014
#define CR_NAMEDPIPE_CONNECTION   2015
#define CR_NAMEDPIPEWAIT_ERROR   2016
#define CR_NAMEDPIPEOPEN_ERROR   2017
#define CR_NAMEDPIPESETSTATE_ERROR   2018
#define __CLASS__   "MysqlDb"
#define __METHOD__   "reConnect()"
#define __METHOD__   "Connect(host,user,pw,database,port)"
#define __METHOD__   "ExecQuery()"

Functions

const MysqlBinBinary (const unsigned long int aLen, const float *aBin)

Variables

const char * binaryMessage = {"Cannot Print Query with Binary data"}
MYSQL * conn


Define Documentation

#define __CLASS__   "MysqlDb"
 

Definition at line 203 of file MysqlDb.cc.

#define __METHOD__   "ExecQuery()"
 

#define __METHOD__   "Connect(host,user,pw,database,port)"
 

#define __METHOD__   "reConnect()"
 

#define CR_COMMANDS_OUT_OF_SYNC   2014
 

Definition at line 197 of file MysqlDb.cc.

#define CR_CONN_HOST_ERROR   2003
 

Definition at line 186 of file MysqlDb.cc.

#define CR_CONNECTION_ERROR   2002
 

Definition at line 185 of file MysqlDb.cc.

#define CR_IPSOCK_ERROR   2004
 

Definition at line 187 of file MysqlDb.cc.

#define CR_LOCALHOST_CONNECTION   2010
 

Definition at line 193 of file MysqlDb.cc.

#define CR_MAX_ERROR   2999
 

Definition at line 182 of file MysqlDb.cc.

#define CR_MIN_ERROR   2000 /* For easier client code */
 

Definition at line 181 of file MysqlDb.cc.

#define CR_NAMEDPIPE_CONNECTION   2015
 

Definition at line 198 of file MysqlDb.cc.

#define CR_NAMEDPIPEOPEN_ERROR   2017
 

Definition at line 200 of file MysqlDb.cc.

#define CR_NAMEDPIPESETSTATE_ERROR   2018
 

Definition at line 201 of file MysqlDb.cc.

#define CR_NAMEDPIPEWAIT_ERROR   2016
 

Definition at line 199 of file MysqlDb.cc.

#define CR_OUT_OF_MEMORY   2008
 

Definition at line 191 of file MysqlDb.cc.

#define CR_SERVER_GONE_ERROR   2006
 

Definition at line 189 of file MysqlDb.cc.

#define CR_SERVER_HANDSHAKE_ERR   2012
 

Definition at line 195 of file MysqlDb.cc.

#define CR_SERVER_LOST   2013
 

Definition at line 196 of file MysqlDb.cc.

#define CR_SOCKET_CREATE_ERROR   2001
 

Definition at line 184 of file MysqlDb.cc.

#define CR_TCP_CONNECTION   2011
 

Definition at line 194 of file MysqlDb.cc.

#define CR_UNKNOWN_ERROR   2000
 

Definition at line 183 of file MysqlDb.cc.

#define CR_UNKNOWN_HOST   2005
 

Definition at line 188 of file MysqlDb.cc.

#define CR_VERSION_ERROR   2007
 

Definition at line 190 of file MysqlDb.cc.

#define CR_WRONG_HOST_INFO   2009
 

Definition at line 192 of file MysqlDb.cc.


Function Documentation

const MysqlBin* Binary const unsigned long int  aLen,
const float *  aBin
 

Definition at line 902 of file MysqlDb.cc.

00902 { 00903 static MysqlBin *tBin=0; 00904 static char *tString=0; 00905 unsigned long int tNewLen; 00906 00907 if (!tBin) tBin=new MysqlBin; 00908 if (tString) delete [] tString; 00909 00910 tString = new char[2*aLen+1]; 00911 tNewLen = mysql_escape_string(tString,(char*) aBin,aLen); 00912 tBin->Input(tNewLen,tString); 00913 return tBin; 00914 }


Variable Documentation

const char* binaryMessage = {"Cannot Print Query with Binary data"} [static]
 

Definition at line 206 of file MysqlDb.cc.

MYSQL* conn [static]
 

Definition at line 207 of file MysqlDb.cc.


Generated on Thu Aug 24 14:45:29 2006 for Doxygen by doxygen 1.3.7