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
4#ifndef QTSQLGLOBAL_H
5#define QTSQLGLOBAL_H
6
7#if 0
8#pragma qt_class(QSql)
9#endif
10
11#include <QtCore/qglobal.h>
12#include <QtSql/qtsql-config.h>
13#include <QtSql/qtsqlexports.h>
14
15QT_BEGIN_NAMESPACE
16
17namespace QSql
18{
19 enum Location
20 {
21 BeforeFirstRow = -1,
22 AfterLastRow = -2
23 };
24
25 enum ParamTypeFlag
26 {
27 In = 0x00000001,
28 Out = 0x00000002,
29 InOut = In | Out,
30 Binary = 0x00000004
31 };
32 Q_DECLARE_FLAGS(ParamType, ParamTypeFlag)
33
34 enum TableType
35 {
36 Tables = 0x01,
37 SystemTables = 0x02,
38 Views = 0x04,
39 AllTables = 0xff
40 };
41
42 enum NumericalPrecisionPolicy
43 {
44 LowPrecisionInt32 = 0x01,
45 LowPrecisionInt64 = 0x02,
46 LowPrecisionDouble = 0x04,
47
48 HighPrecision = 0
49 };
50}
51
52Q_DECLARE_OPERATORS_FOR_FLAGS(QSql::ParamType)
53
54QT_END_NAMESPACE
55
56#endif // QSQL_H
57

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtbase/src/sql/kernel/qtsqlglobal.h