6.0.0-rc4Source

Nt SQL C++ Classes

Classes for working with SQL databases.

Using the Module

target_link_libraries(app PRIVATE Nt::Sql)

Nt SQL connects to SQL databases, runs statements with bound values and shows tables as item models. It comes with a driver for SQLite, and takes drivers of the application for other databases.

See Using Nt SQL for a walk through, and examples/sql/contacts.cpp for a complete program.

Classes

QSqlThe QSql namespace holds identifiers that are used throughout Nt SQL.
QSqlDatabaseThe QSqlDatabase class handles a connection to a database.
QSqlDriverThe QSqlDriver class is an abstract base class for accessing specific SQL databases.
QSqlDriverCreatorThe QSqlDriverCreator class is a template class that provides a SQL driver factory for a specific driver type.
QSqlDriverCreatorBaseThe QSqlDriverCreatorBase class is the base class for SQL driver factories.
QSqlErrorThe QSqlError class provides SQL database error information.
QSqlFieldThe QSqlField class manipulates the fields of SQL database tables and views.
QSqlIndexThe QSqlIndex class provides functions to manipulate and describe database indexes.
QSqlQueryThe QSqlQuery class provides a means of executing and manipulating SQL statements.
QSqlQueryModelThe QSqlQueryModel class provides a read-only data model for SQL result sets.
QSqlRecordThe QSqlRecord class encapsulates a database record.
QSqlRelationThe QSqlRelation class stores information about an SQL foreign key.
QSqlRelationalTableModelThe QSqlRelationalTableModel class provides an editable data model for a single database table, with foreign key support.
QSqlResultThe QSqlResult class provides an abstract interface for accessing data from specific SQL databases.
QSqlTableModelThe QSqlTableModel class provides an editable data model for a single database table.