6.0.0-rc4Source

QSql Namespace

The QSql namespace holds identifiers that are used throughout Nt SQL. More…

Header#include <QSql>
CMaketarget_link_libraries(app PRIVATE Nt::Sql)
ModuleNt SQL C++ Classes

Public Types

Detailed Description

Differences from Qt

None.

Member Type Documentation

enum QSql::Location

The special positions of a query, as returned by QSqlQuery::at().

ConstantDescription
QSql::BeforeFirstRowThe query is positioned before the first row.
QSql::AfterLastRowThe query is positioned after the last row.

enum QSql::NumericalPrecisionPolicy

How numbers that do not fit a double without loss are returned. The SQLite driver stores what SQLite stores, a 64-bit integer or a double, so it accepts the policy and ignores it.

ConstantDescription
QSql::LowPrecisionInt32Return a 32-bit integer.
QSql::LowPrecisionInt64Return a 64-bit integer.
QSql::LowPrecisionDoubleReturn a double. This is the default.
QSql::HighPrecisionReturn a string that keeps every digit.

typedef QSql::ParamType

The ParamType type is a typedef for QFlags<ParamTypeFlag>. It stores an OR combination of ParamTypeFlag values.

enum QSql::ParamTypeFlag

The kind of a value that is bound to a placeholder.

ConstantDescription
QSql::InThe value is passed to the database.
QSql::OutThe database writes the value. No driver of Nt has output parameters.
QSql::InOutThe value is passed to the database, which may overwrite it.
QSql::BinaryThe value is binary data. This can be combined with the other values.

enum QSql::TableType

The kinds of tables that QSqlDatabase::tables() lists.

ConstantDescription
QSql::TablesThe tables that the user can see.
QSql::SystemTablesThe tables that the database uses internally.
QSql::ViewsThe views that the user can see.
QSql::AllTablesAll of the above.