mySqlDriver.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 #ifndef mySqlDriver_H_
00010 #define mySqlDriver_H_
00011 
00012 #include "databaseDriver.h"
00013 #include <vlutil/vlString.h>
00014 
00015 class DT_DLL_VLDB DtMySQLDriver : public DtDatabaseDriver
00016 {
00017 public:
00018    enum DriverVersion
00019    {
00020       MySQL_ODBC_2_50_Driver,
00021       MySQL_ODBC_3_51_Driver,
00022       MySQL_ODBC_5_1_Driver
00023    };
00024 
00026    explicit DtMySQLDriver(DriverVersion version);
00027 
00029    virtual ~DtMySQLDriver();
00030 
00033    virtual const DtString& name() const;
00034 
00035 
00037    virtual DtDatabaseParameters* createParameters() const;
00038 
00040    virtual DtDatabaseEnvironment* createEnvironment() const;
00041 
00043    virtual DtDatabaseConnection* createConnection(
00044       DtDatabaseEnvironment*) const;
00045 
00047    virtual DtDatabaseCommandFactory* createCommandFactory() const;
00048 
00050    virtual DtDatabaseCommandProcessor* createCommandProcessor(
00051       DtDatabaseConnection*) const;
00052 
00053 protected:
00054    DriverVersion myVersion;
00055    DtString myVersionText;
00056 };
00057 
00058 
00059 #endif

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)