/*************************************************************************** * Copyright (C) 2005 by * * Jason Kivlighn (jkivlighn@gmail.com) * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * ***************************************************************************/ #ifndef TQSQL_SQLITE_H #define TQSQL_SQLITE_H #include #include #include #include typedef TQVariant TQSqlVariant; class TQSQLiteDB; class KreSQLiteDriver : public TQSqlDriver { public: KreSQLiteDriver(TQObject * parent = 0, const char * name = 0); KreSQLiteDriver(TQSQLiteDB *connection, TQObject *parent = 0, const char *name = 0); ~KreSQLiteDriver(); bool hasFeature( DriverFeature ) const; bool open( const TQString&, const TQString&, const TQString&, const TQString&, int ); void close(); bool ping(); TQSqlQuery createQuery() const; bool beginTransaction(); bool commitTransaction(); bool rollbackTransaction(); TQStringList tables(const TQString &typeName) const; TQSqlIndex primaryIndex(const TQString &tblname) const; //TQSqlRecordInfo recordInfo(const TQString &tbl) const; //TQSqlRecord record(const TQString &tblname) const; //TQString formatValue( const TQSqlField* field, bool trimStrings ) const; private: friend class KreSQLiteResult; TQSQLiteDB *db; }; #endif