Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsql_mimer.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// Copyright (C) 2022 Mimer Information Technology
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
6#ifndef QSQL_MIMER_H
7#define QSQL_MIMER_H
8
9#include <QtSql/qsqldriver.h>
10#include <QUuid>
11#include <mimerapi.h>
12
13#ifdef QT_PLUGIN
14# define Q_EXPORT_SQLDRIVER_MIMER
15#else
16# define Q_EXPORT_SQLDRIVER_MIMER Q_SQL_EXPORT
17#endif
18
19QT_BEGIN_NAMESPACE
20
21class QMimerSQLDriverPrivate;
22
24{
25 friend class QMimerSQLResultPrivate;
26 Q_DECLARE_PRIVATE(QMimerSQLDriver)
27 Q_OBJECT
28public:
29 explicit QMimerSQLDriver(QObject *parent = nullptr);
30 explicit QMimerSQLDriver(MimerSession *conn, QObject *parent = nullptr);
31 ~QMimerSQLDriver() override;
32 bool hasFeature(DriverFeature f) const override;
33 bool open(const QString &db, const QString &user, const QString &password, const QString &host,
34 int port, const QString &connOpts) override;
35 void close() override;
36 QSqlResult *createResult() const override;
37 QStringList tables(QSql::TableType type) const override;
38 QSqlIndex primaryIndex(const QString &tablename) const override;
39 QSqlRecord record(const QString &tablename) const override;
40 QVariant handle() const override;
41 QString escapeIdentifier(const QString &identifier, IdentifierType type) const override;
42protected:
43 bool beginTransaction() override;
44 bool commitTransaction() override;
45 bool rollbackTransaction() override;
46
47private:
48};
49
50QT_END_NAMESPACE
51
52#endif // QSQL_MIMER
QSqlDriver * create(const QString &) override
Creates and returns a QSqlDriver object for the driver called key.
Definition main.cpp:26
#define Q_EXPORT_SQLDRIVER_MIMER
Definition qsql_mimer.h:16