Akonadi

qsql_sqlite.h
1 /****************************************************************************
2 **
3 ** SPDX-FileCopyrightText: 2009 Nokia Corporation and /or its subsidiary(-ies).
4 ** Contact: Nokia Corporation ([email protected])
5 **
6 ** This file is part of the QtSql module of the Qt Toolkit.
7 **
8 ** SPDX-FileCopyrightText: LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR GPL-3.0-only
9 **
10 ****************************************************************************/
11 
12 #pragma once
13 
14 #include <QtSql/private/qsqlcachedresult_p.h>
15 #include <QtSql/qsqldriver.h>
16 #include <QtSql/qsqlresult.h>
17 
18 struct sqlite3;
19 
20 QT_BEGIN_NAMESPACE
21 class QSQLiteDriverPrivate;
22 class QSQLiteResultPrivate;
23 class QSQLiteDriver;
24 
25 class QSQLiteDriver : public QSqlDriver
26 {
27  Q_OBJECT
28  friend class QSQLiteResult;
29 
30 public:
31  explicit QSQLiteDriver(QObject *parent = nullptr);
32  explicit QSQLiteDriver(sqlite3 *connection, QObject *parent = nullptr);
33  ~QSQLiteDriver() override;
34  bool hasFeature(DriverFeature f) const override;
35  bool open(const QString &db, const QString &user, const QString &password, const QString &host, int port, const QString &connOpts) override;
36  void close() override;
37  QSqlResult *createResult() const override;
38  bool beginTransaction() override;
39  bool commitTransaction() override;
40  bool rollbackTransaction() override;
41  QStringList tables(QSql::TableType) const override;
42 
43  QSqlRecord record(const QString &tablename) const override;
44  QSqlIndex primaryIndex(const QString &table) const override;
45  QVariant handle() const override;
46  QString escapeIdentifier(const QString &identifier, IdentifierType) const override;
47 
48 private:
49  Q_DECLARE_PRIVATE(QSQLiteDriver)
50 };
51 
52 QT_END_NAMESPACE
Q_OBJECTQ_OBJECT
virtual bool commitTransaction()
virtual QVariant handle() const const
virtual QSqlIndex primaryIndex(const QString &tableName) const const
virtual bool open(const QString &db, const QString &user, const QString &password, const QString &host, int port, const QString &options)=0
virtual void close()=0
virtual QSqlResult * createResult() const const=0
virtual QSqlRecord record(const QString &tableName) const const
virtual bool hasFeature(QSqlDriver::DriverFeature feature) const const=0
virtual bool beginTransaction()
virtual QStringList tables(QSql::TableType tableType) const const
virtual QString escapeIdentifier(const QString &identifier, QSqlDriver::IdentifierType type) const const
ScriptableExtension * host() const
virtual bool rollbackTransaction()
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jun 30 2022 03:51:46 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.