Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qsql_ibase_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QSQL_IBASE_H
6
#
define
QSQL_IBASE_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtSql
/
qsqldriver
.
h
>
20
#
include
<
ibase
.
h
>
21
22
#
ifdef
QT_PLUGIN
23
#
define
Q_EXPORT_SQLDRIVER_IBASE
24
#
else
25
#
define
Q_EXPORT_SQLDRIVER_IBASE
Q_SQL_EXPORT
26
#
endif
27
28
static_assert
(FB_API_VER >= 20,
"Qt requires at least the Firebird 2.0 client APIs."
);
29
30
QT_BEGIN_NAMESPACE
31
32
class
QSqlResult;
33
class
QIBaseDriverPrivate
;
34
35
class
Q_EXPORT_SQLDRIVER_IBASE
QIBaseDriver
:
public
QSqlDriver
36
{
37
friend
class
QIBaseResultPrivate;
38
Q_DECLARE_PRIVATE(QIBaseDriver)
39
Q_OBJECT
40
public
:
41
explicit
QIBaseDriver(QObject *parent =
nullptr
);
42
explicit
QIBaseDriver(isc_db_handle connection, QObject *parent =
nullptr
);
43
virtual
~QIBaseDriver();
44
bool
hasFeature(DriverFeature f)
const
override;
45
bool
open(
const
QString &db,
46
const
QString &user,
47
const
QString &password,
48
const
QString &host,
49
int
port,
50
const
QString &connOpts) override;
51
bool
open(
const
QString &db,
52
const
QString &user,
53
const
QString &password,
54
const
QString &host,
55
int
port) {
return
open(db, user, password, host, port, QString()); }
56
void
close() override;
57
QSqlResult *createResult()
const
override;
58
bool
beginTransaction() override;
59
bool
commitTransaction() override;
60
bool
rollbackTransaction() override;
61
QStringList tables(QSql::TableType)
const
override;
62
63
QSqlRecord record(
const
QString& tablename)
const
override;
64
QSqlIndex primaryIndex(
const
QString &table)
const
override;
65
66
QString formatValue(
const
QSqlField &field,
bool
trimStrings)
const
override;
67
QVariant handle()
const
override;
68
69
QString escapeIdentifier(
const
QString &identifier, IdentifierType type)
const
override;
70
71
bool
subscribeToNotification(
const
QString &name) override;
72
bool
unsubscribeFromNotification(
const
QString &name) override;
73
QStringList subscribedToNotifications()
const
override;
74
int
maximumIdentifierLength(IdentifierType type)
const
override;
75
private
Q_SLOTS:
76
void
qHandleEventNotification(
void
* updatedResultBuffer);
77
};
78
79
QT_END_NAMESPACE
80
81
#
endif
// QSQL_IBASE_H
QIBaseDriverPlugin
Definition
main.cpp:14
QIBaseDriverPlugin::create
QSqlDriver * create(const QString &) override
Creates and returns a QSqlDriver object for the driver called key.
Definition
main.cpp:29
QIBaseDriverPrivate
Definition
qsql_ibase.cpp:328
QIBaseDriver
Definition
qsql_ibase_p.h:36
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_EXPORT_SQLDRIVER_IBASE
#define Q_EXPORT_SQLDRIVER_IBASE
Definition
qsql_ibase_p.h:25
qtbase
src
plugins
sqldrivers
ibase
qsql_ibase_p.h
Generated on
for Qt by
1.18.0