1 /****************************************************************************
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
7 ** This file is part of the documentation of the Qt Toolkit.
9 ** $QT_BEGIN_LICENSE:LGPL$
10 ** No Commercial Usage
11 ** This file contains pre-release code and may not be distributed.
12 ** You may use this file in accordance with the terms and conditions
13 ** contained in the Technology Preview License Agreement accompanying
16 ** GNU Lesser General Public License Usage
17 ** Alternatively, this file may be used under the terms of the GNU Lesser
18 ** General Public License version 2.1 as published by the Free Software
19 ** Foundation and appearing in the file LICENSE.LGPL included in the
20 ** packaging of this file. Please review the following information to
21 ** ensure the GNU Lesser General Public License version 2.1 requirements
22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 ** In addition, as a special exception, Nokia gives you certain additional
25 ** rights. These rights are described in the Nokia Qt LGPL Exception
26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 ** If you have questions regarding the use of this file, please contact
29 ** Nokia at qt-info@nokia.com.
40 ****************************************************************************/
44 \brief The QSql namespace contains miscellaneous identifiers used throughout
49 \omit ### \module sql \endomit
58 This enum type describes edit confirmations.
69 This enum type describes edit operations.
81 This enum type describes special SQL navigation locations:
83 \value BeforeFirstRow Before the first record.
84 \value AfterLastRow After the last record.
86 \omitvalue BeforeFirst
93 \enum QSql::ParamTypeFlag
95 This enum is used to specify the type of a bind parameter.
97 \value In The bind parameter is used to put data into the database.
98 \value Out The bind parameter is used to receive data from the database.
99 \value InOut The bind parameter is used to put data into the
100 database; it will be overwritten with output data on executing
102 \value Binary This must be OR'd with one of the other flags if
103 you want to indicate that the data being transferred is
108 \enum QSql::TableType
110 This enum type describes types of SQL tables.
112 \value Tables All the tables visible to the user.
113 \value SystemTables Internal tables used by the database.
114 \value Views All the views visible to the user.
115 \value AllTables All of the above.
119 \enum QSql::NumericalPrecisionPolicy
121 This enum type describes at which precision levels numercial values are read from
124 Some databases support numerical values with a precision that is not storable in a
125 C++ basic data type. The default behavior is to bind these values as a QString.
126 This enum can be used to override this behavior.
128 \value LowPrecisionInt32 Force 32bit integer values. In case of floating point numbers,
129 the fractional part is silently discarded.
130 \value LowPrecisionInt64 Force 64bit integer values. In case of floating point numbers,
131 the fractional part is silently discarded.
132 \value LowPrecisionDouble Force \c double values.
133 \value HighPrecision The default behavior - try to preserve maximum precision.
135 Note: The actual behaviour if an overflow occurs is driver specific. The Oracle database
136 just returns an error in this case.