QSql Namespace ReferenceThe QSql namespace contains miscellaneous identifiers used throughout the Qt SQL library. More... #include <QSql> Types
Detailed DescriptionThe QSql namespace contains miscellaneous identifiers used throughout the Qt SQL library. See also QtSql Module. Type Documentationenum QSql::LocationThis enum type describes special SQL navigation locations:
See also QSqlQuery::at(). enum QSql::NumericalPrecisionPolicyThis enum type describes at which precision levels numercial values are read from a database. Some databases support numerical values with a precision that is not storable in a C++ basic data type. The default behavior is to bind these values as a QString. This enum can be used to override this behavior.
Note: The actual behaviour if an overflow occurs is driver specific. The Oracle database just returns an error in this case. enum QSql::ParamTypeFlag
|
Constant | Value | Description |
---|---|---|
QSql::In | 0x00000001 | The bind parameter is used to put data into the database. |
QSql::Out | 0x00000002 | The bind parameter is used to receive data from the database. |
QSql::InOut | In | Out | The bind parameter is used to put data into the database; it will be overwritten with output data on executing a query. |
QSql::Binary | 0x00000004 | This must be OR'd with one of the other flags if you want to indicate that the data being transferred is raw binary data. |
The ParamType type is a typedef for QFlags<ParamTypeFlag>. It stores an OR combination of ParamTypeFlag values.
This enum type describes types of SQL tables.
Constant | Value | Description |
---|---|---|
QSql::Tables | 0x01 | All the tables visible to the user. |
QSql::SystemTables | 0x02 | Internal tables used by the database. |
QSql::Views | 0x04 | All the views visible to the user. |
QSql::AllTables | 0xff | All of the above. |
Copyright © 2008 Nokia | Trademarks | Qt 4.4.3 |
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |