kexi

sqlite/sqlitedriver.h
1/* This file is part of the KDE project
2 Copyright (C) 2003-2004 Jaroslaw Staniek <js@iidea.pl>
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this program; see the file COPYING. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KEXIDB_DRIVER_SQLITE_H
21#define KEXIDB_DRIVER_SQLITE_H
22
23#include <tqstringlist.h>
24
25#include <kexidb/driver.h>
26
27namespace KexiDB
28{
29
30class Connection;
31class DriverManager;
32class SQLiteDriverPrivate;
33
35class SQLiteDriver : public Driver
36{
37 TQ_OBJECT
38
39 KEXIDB_DRIVER
40
41 public:
42 SQLiteDriver( TQObject *parent, const char *name, const TQStringList &args = TQStringList() );
43 virtual ~SQLiteDriver();
44
49 virtual bool isSystemObjectName( const TQString& n ) const;
50
52 virtual bool isSystemDatabaseName( const TQString& ) const { return false; }
53
55 virtual TQString escapeString(const TQString& str) const;
56 virtual TQCString escapeString(const TQCString& str) const;
57
59 virtual TQString escapeBLOB(const TQByteArray& array) const;
60
61 protected:
62 virtual TQString drv_escapeIdentifier( const TQString& str) const;
63 virtual TQCString drv_escapeIdentifier( const TQCString& str) const;
64 virtual Connection *drv_createConnection( ConnectionData &conn_data );
65 virtual AdminTools* drv_createAdminTools() const;
66
71 virtual bool drv_isSystemFieldName( const TQString& n ) const;
72
73 SQLiteDriverPrivate *dp;
74
75 private:
76 static const char *keywords[];
77
78};
79
80}
81
82#endif
83
An interface containing a set of tools for database administration.
Definition admin.h:34
Database specific connection data, e.g. host, port.
Provides database connection, allowing queries and data modification.
Definition connection.h:62
Database driver management, e.g. finding and loading drivers.
Driver(TQObject *parent, const char *name, const TQStringList &args=TQStringList())
virtual bool drv_isSystemFieldName(const TQString &n) const
virtual bool isSystemObjectName(const TQString &n) const
virtual TQString escapeBLOB(const TQByteArray &array) const
Escape BLOB value array.
virtual bool isSystemDatabaseName(const TQString &) const
virtual TQString escapeString(const TQString &str) const
Escape a string for use as a value.
virtual Connection * drv_createConnection(ConnectionData &conn_data)
virtual TQString drv_escapeIdentifier(const TQString &str) const
High-level database connectivity library with database backend drivers.