You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.7 KiB
55 lines
1.7 KiB
/***************************************************************************
|
|
* 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 <ntqsqldriver.h>
|
|
#include <ntqsqlresult.h>
|
|
#include <ntqsqlrecord.h>
|
|
#include <ntqsqlindex.h>
|
|
|
|
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
|