kexi

mysqldriver.h

00001 /* This file is part of the KDE project
00002 Copyright (C) 2002   Lucijan Busch <lucijan@gmx.at>
00003 Daniel Molkentin <molkentin@kde.org>
00004 Copyright (C) 2003   Joseph Wenninger<jowenn@kde.org>
00005 
00006 This program is free software; you can redistribute it and/or
00007 modify it under the terms of the GNU Library General Public
00008 License as published by the Free Software Foundation; either
00009 version 2 of the License, or (at your option) any later version.
00010 
00011 This program is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 Library General Public License for more details.
00015 
00016 You should have received a copy of the GNU Library General Public License
00017 along with this program; see the file COPYING.  If not, write to
00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef MYSQLDB_H
00023 #define MYSQLDB_H
00024 
00025 #include <kexidb/driver.h>
00026 
00027 namespace KexiDB {
00028 
00030 class MySqlDriver : public Driver
00031 {
00032     Q_OBJECT
00033     KEXIDB_DRIVER
00034 
00035     public:
00036         MySqlDriver(QObject *parent, const char *name, const QStringList &args=QStringList());
00037         virtual ~MySqlDriver();
00038         
00039         virtual bool isSystemDatabaseName( const QString &n ) const;
00040 
00042         virtual QString escapeString(const QString& str) const;
00043         virtual QCString escapeString(const QCString& str) const;
00044 
00046         virtual QString escapeBLOB(const QByteArray& array) const;
00047 
00048     protected:
00049         virtual QString drv_escapeIdentifier( const QString& str) const;
00050         virtual QCString drv_escapeIdentifier( const QCString& str) const;
00051         virtual Connection *drv_createConnection( ConnectionData &conn_data );
00052         virtual bool drv_isSystemFieldName( const QString& n ) const;
00053     
00054     private:
00055         static const char *keywords[];
00056 };
00057 }
00058 
00059 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys