db.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e2f1cfb2cc
commit
595b5c4eb6
@ -56,7 +56,7 @@
|
|||||||
#include "wx/isql.h"
|
#include "wx/isql.h"
|
||||||
#include "wx/isqlext.h"
|
#include "wx/isqlext.h"
|
||||||
// If you use the wxCreateDataSource() function with MSW/VC6,
|
// If you use the wxCreateDataSource() function with MSW/VC6,
|
||||||
// you cannot use the iODBC headers, you must use the VC headers,
|
// you cannot use the iODBC headers, you must use the VC headers,
|
||||||
// plus the odbcinst.h header
|
// plus the odbcinst.h header
|
||||||
//#include "sql.h"
|
//#include "sql.h"
|
||||||
//#include "sqlext.h"
|
//#include "sqlext.h"
|
||||||
@ -69,8 +69,8 @@
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef float SFLOAT;
|
typedef float SFLOAT;
|
||||||
typedef double SDOUBLE;
|
typedef double SDOUBLE;
|
||||||
typedef unsigned int UINT;
|
typedef unsigned int UINT;
|
||||||
#define ULONG UDWORD
|
#define ULONG UDWORD
|
||||||
|
|
||||||
@ -270,7 +270,7 @@ public:
|
|||||||
|
|
||||||
wxColFor();
|
wxColFor();
|
||||||
~wxColFor();
|
~wxColFor();
|
||||||
|
|
||||||
int Format(int Nation, int dbDataType, SWORD sqlDataType, short columnSize, short decimalDigits);
|
int Format(int Nation, int dbDataType, SWORD sqlDataType, short columnSize, short decimalDigits);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -347,10 +347,10 @@ enum wxDBMS
|
|||||||
|
|
||||||
// The wxDB::errorList is copied to this variable when the wxDB object
|
// The wxDB::errorList is copied to this variable when the wxDB object
|
||||||
// is closed. This way, the error list is still available after the
|
// is closed. This way, the error list is still available after the
|
||||||
// database object is closed. This is necessary if the database
|
// database object is closed. This is necessary if the database
|
||||||
// connection fails so the calling application can show the operator
|
// connection fails so the calling application can show the operator
|
||||||
// why the connection failed. Note: as each wxDB object is closed, it
|
// why the connection failed. Note: as each wxDB object is closed, it
|
||||||
// will overwrite the errors of the previously destroyed wxDB object in
|
// will overwrite the errors of the previously destroyed wxDB object in
|
||||||
// this variable.
|
// this variable.
|
||||||
extern char DBerrorList[DB_MAX_ERROR_HISTORY][DB_MAX_ERROR_MSG_LEN];
|
extern char DBerrorList[DB_MAX_ERROR_HISTORY][DB_MAX_ERROR_MSG_LEN];
|
||||||
|
|
||||||
@ -434,7 +434,7 @@ public:
|
|||||||
// type name the data source uses for each logical data type.
|
// type name the data source uses for each logical data type.
|
||||||
// e.g. VARCHAR; Oracle calls it VARCHAR2.
|
// e.g. VARCHAR; Oracle calls it VARCHAR2.
|
||||||
wxSqlTypeInfo typeInfVarchar, typeInfInteger, typeInfFloat, typeInfDate;
|
wxSqlTypeInfo typeInfVarchar, typeInfInteger, typeInfFloat, typeInfDate;
|
||||||
|
|
||||||
// Public member functions
|
// Public member functions
|
||||||
wxDB(HENV &aHenv, bool FwdOnlyCursors=(bool)TRUE);
|
wxDB(HENV &aHenv, bool FwdOnlyCursors=(bool)TRUE);
|
||||||
bool Open(char *Dsn, char *Uid, char *AuthStr); // Data Source Name, User ID, Password
|
bool Open(char *Dsn, char *Uid, char *AuthStr); // Data Source Name, User ID, Password
|
||||||
@ -514,7 +514,7 @@ bool wxDbSqlLog(wxSqlLogState state, const char *filename = SQL_LOG_FILENAME);
|
|||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// MSW/VC6 ONLY!!! Experimental
|
// MSW/VC6 ONLY!!! Experimental
|
||||||
int WXDLLEXPORT wxDbCreateDataSource(const char *driverName, const char *dsn, const char *description="",
|
int WXDLLEXPORT wxDbCreateDataSource(const char *driverName, const char *dsn, const char *description="",
|
||||||
bool sysDSN=FALSE, const char *defDir="", wxWindow *parent=NULL);
|
bool sysDSN=FALSE, const char *defDir="", wxWindow *parent=NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -541,7 +541,7 @@ typedef enum wxDBMS DBMS;
|
|||||||
typedef wxODBC_ERRORS ODBC_ERRORS;
|
typedef wxODBC_ERRORS ODBC_ERRORS;
|
||||||
typedef wxDbConnectInf DbStuff;
|
typedef wxDbConnectInf DbStuff;
|
||||||
typedef wxDbList DbList;
|
typedef wxDbList DbList;
|
||||||
typedef wxTablesInUse CstructTablesInUse;
|
// typedef wxTablesInUse CstructTablesInUse; // mj10777 : OK : VC/Debug ; not OK VC/Release + GTK
|
||||||
|
|
||||||
// Deprecated function names that are replaced by the function names listed above
|
// Deprecated function names that are replaced by the function names listed above
|
||||||
wxDB WXDLLEXPORT *GetDbConnection(DbStuff *pDbStuff, bool FwdOnlyCursors=(bool)wxODBC_FWD_ONLY_CURSORS);
|
wxDB WXDLLEXPORT *GetDbConnection(DbStuff *pDbStuff, bool FwdOnlyCursors=(bool)wxODBC_FWD_ONLY_CURSORS);
|
||||||
|
Loading…
Reference in New Issue
Block a user