Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsql.qdoc
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \namespace QSql
6 \inmodule QtSql
7 \brief The QSql namespace contains miscellaneous identifiers used throughout
8 the Qt SQL module.
9
10 \ingroup database
11
12
13 \sa {Qt SQL}
14*/
15
16/*!
17 \enum QSql::Location
18
19 This enum type describes special SQL navigation locations:
20
21 \value BeforeFirstRow Before the first record.
22 \value AfterLastRow After the last record.
23
24 \sa QSqlQuery::at()
25*/
26
27/*!
28 \enum QSql::ParamTypeFlag
29
30 This enum is used to specify the type of a bind parameter.
31
32 \value In The bind parameter is used to put data into the database.
33 \value Out The bind parameter is used to receive data from the database.
34 \value InOut The bind parameter is used to put data into the
35 database; it will be overwritten with output data on executing
36 a query.
37 \value Binary This must be OR'd with one of the other flags if
38 you want to indicate that the data being transferred is
39 raw binary data.
40*/
41
42/*!
43 \enum QSql::TableType
44
45 This enum type describes types of SQL tables.
46
47 \value Tables All the tables visible to the user.
48 \value SystemTables Internal tables used by the database.
49 \value Views All the views visible to the user.
50 \value AllTables All of the above.
51*/
52
53/*!
54 \enum QSql::NumericalPrecisionPolicy
55
56 Numerical values in a database can have precisions greater than their corresponding
57 C++ types. This enum lists the policies for representing such values in the application.
58
59 \value LowPrecisionInt32 Force 32bit integer values. In case of floating point numbers,
60 the fractional part is silently discarded.
61 \value LowPrecisionInt64 Force 64bit integer values. In case of floating point numbers,
62 the fractional part is silently discarded.
63 \value LowPrecisionDouble Force \c double values. This is the default policy.
64 \value HighPrecision Strings will be used to preserve precision.
65
66 Note: The actual behaviour if an overflow occurs is driver specific. The Oracle database
67 just returns an error in this case.
68*/
69