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

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