[556] | 1 | /****************************************************************************
|
---|
| 2 | **
|
---|
[846] | 3 | ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
---|
[556] | 4 | ** All rights reserved.
|
---|
| 5 | ** Contact: Nokia Corporation (qt-info@nokia.com)
|
---|
| 6 | **
|
---|
| 7 | ** This file is part of the documentation of the Qt Toolkit.
|
---|
| 8 | **
|
---|
[846] | 9 | ** $QT_BEGIN_LICENSE:FDL$
|
---|
[556] | 10 | ** Commercial Usage
|
---|
| 11 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
| 12 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
[846] | 13 | ** Software or, alternatively, in accordance with the terms contained in a
|
---|
| 14 | ** written agreement between you and Nokia.
|
---|
[556] | 15 | **
|
---|
[846] | 16 | ** GNU Free Documentation License
|
---|
| 17 | ** Alternatively, this file may be used under the terms of the GNU Free
|
---|
| 18 | ** Documentation License version 1.3 as published by the Free Software
|
---|
| 19 | ** Foundation and appearing in the file included in the packaging of this
|
---|
| 20 | ** file.
|
---|
[556] | 21 | **
|
---|
| 22 | ** If you have questions regarding the use of this file, please contact
|
---|
| 23 | ** Nokia at qt-info@nokia.com.
|
---|
| 24 | ** $QT_END_LICENSE$
|
---|
| 25 | **
|
---|
| 26 | ****************************************************************************/
|
---|
| 27 |
|
---|
| 28 | /*!
|
---|
| 29 | \namespace QSql
|
---|
| 30 | \inmodule QtSql
|
---|
| 31 | \brief The QSql namespace contains miscellaneous identifiers used throughout
|
---|
| 32 | the Qt SQL library.
|
---|
| 33 |
|
---|
| 34 | \inheaderfile QtSql
|
---|
| 35 | \ingroup database
|
---|
| 36 |
|
---|
| 37 |
|
---|
| 38 | \sa {QtSql Module}
|
---|
| 39 | */
|
---|
| 40 |
|
---|
| 41 | /*!
|
---|
| 42 | \enum QSql::Confirm
|
---|
| 43 | \compat
|
---|
| 44 |
|
---|
| 45 | This enum type describes edit confirmations.
|
---|
| 46 |
|
---|
| 47 | \value Yes
|
---|
| 48 | \value No
|
---|
| 49 | \value Cancel
|
---|
| 50 | */
|
---|
| 51 |
|
---|
| 52 | /*!
|
---|
| 53 | \enum QSql::Op
|
---|
| 54 | \compat
|
---|
| 55 |
|
---|
| 56 | This enum type describes edit operations.
|
---|
| 57 |
|
---|
| 58 | \value None
|
---|
| 59 | \value Insert
|
---|
| 60 | \value Update
|
---|
| 61 | \value Delete
|
---|
| 62 | */
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | /*!
|
---|
| 66 | \enum QSql::Location
|
---|
| 67 |
|
---|
| 68 | This enum type describes special SQL navigation locations:
|
---|
| 69 |
|
---|
| 70 | \value BeforeFirstRow Before the first record.
|
---|
| 71 | \value AfterLastRow After the last record.
|
---|
| 72 |
|
---|
| 73 | \omitvalue BeforeFirst
|
---|
| 74 | \omitvalue AfterLast
|
---|
| 75 |
|
---|
| 76 | \sa QSqlQuery::at()
|
---|
| 77 | */
|
---|
| 78 |
|
---|
| 79 | /*!
|
---|
| 80 | \enum QSql::ParamTypeFlag
|
---|
| 81 |
|
---|
| 82 | This enum is used to specify the type of a bind parameter.
|
---|
| 83 |
|
---|
| 84 | \value In The bind parameter is used to put data into the database.
|
---|
| 85 | \value Out The bind parameter is used to receive data from the database.
|
---|
| 86 | \value InOut The bind parameter is used to put data into the
|
---|
| 87 | database; it will be overwritten with output data on executing
|
---|
| 88 | a query.
|
---|
| 89 | \value Binary This must be OR'd with one of the other flags if
|
---|
| 90 | you want to indicate that the data being transferred is
|
---|
| 91 | raw binary data.
|
---|
| 92 | */
|
---|
| 93 |
|
---|
| 94 | /*!
|
---|
| 95 | \enum QSql::TableType
|
---|
| 96 |
|
---|
| 97 | This enum type describes types of SQL tables.
|
---|
| 98 |
|
---|
| 99 | \value Tables All the tables visible to the user.
|
---|
| 100 | \value SystemTables Internal tables used by the database.
|
---|
| 101 | \value Views All the views visible to the user.
|
---|
| 102 | \value AllTables All of the above.
|
---|
| 103 | */
|
---|
| 104 |
|
---|
| 105 | /*!
|
---|
| 106 | \enum QSql::NumericalPrecisionPolicy
|
---|
| 107 |
|
---|
| 108 | This enum type describes at which precision levels numercial values are read from
|
---|
| 109 | a database.
|
---|
| 110 |
|
---|
| 111 | Some databases support numerical values with a precision that is not storable in a
|
---|
| 112 | C++ basic data type. The default behavior is to bind these values as a QString.
|
---|
| 113 | This enum can be used to override this behavior.
|
---|
| 114 |
|
---|
| 115 | \value LowPrecisionInt32 Force 32bit integer values. In case of floating point numbers,
|
---|
| 116 | the fractional part is silently discarded.
|
---|
| 117 | \value LowPrecisionInt64 Force 64bit integer values. In case of floating point numbers,
|
---|
| 118 | the fractional part is silently discarded.
|
---|
| 119 | \value LowPrecisionDouble Force \c double values.
|
---|
| 120 | \value HighPrecision The default behavior - try to preserve maximum precision.
|
---|
| 121 |
|
---|
| 122 | Note: The actual behaviour if an overflow occurs is driver specific. The Oracle database
|
---|
| 123 | just returns an error in this case.
|
---|
| 124 | */
|
---|
| 125 |
|
---|