SQL Programming▲
This overview assumes that you have at least a basic knowledge of SQL. You should be able to understand simple SELECT, INSERT, UPDATE, and DELETE statements. Although the https:// class provides an interface to database browsing and editing that does not require a knowledge of SQL, a basic understanding of SQL is highly recommended. A standard text covering SQL databases is An Introduction to Database Systems (7th Ed.) by C. J. Date, ISBN 0201385902.
Topics:▲
-
https://
-
https://
-
https://
-
-
https://
-
https://
-
-
https://
-
https://
-
https://
Database Classes▲
These classes provide access to SQL databases.
-
https://: The QSql namespace contains miscellaneous identifiers used throughout the Qt SQL module.
-
https://: The QSqlDatabase class handles a connection to a database.
-
https://: The QSqlDriver class is an abstract base class for accessing specific SQL databases.
-
https://: The QSqlDriverCreator class is a template class that provides a SQL driver factory for a specific driver type.
-
https://: The QSqlDriverCreatorBase class is the base class for SQL driver factories.
-
https://: The QSqlError class provides SQL database error information.
-
https://: The QSqlField class manipulates the fields in SQL database tables and views.
-
https://: The QSqlIndex class provides functions to manipulate and describe database indexes.
-
https://: The QSqlQuery class provides a means of executing and manipulating SQL statements.
-
https://: The QSqlQueryModel class provides a read-only data model for SQL result sets.
-
https://: The QSqlRecord class encapsulates a database record.
-
https://: The QSqlRelationalTableModel class provides an editable data model for a single database table, with foreign key support.
-
https://: The QSqlResult class provides an abstract interface for accessing data from specific SQL databases.
-
https://: The QSqlTableModel class provides an editable data model for a single database table.
The SQL classes are divided into three layers:
Driver Layer▲
This comprises the classes https://, https://, https://, https://, and https://.
This layer provides the low-level bridge between the specific databases and the SQL API layer. See https:// for more information.
SQL API Layer▲
These classes provide access to databases. Connections are made using the https:// class. Database interaction is achieved by using the https:// class. In addition to https:// and https://, the SQL API layer is supported by https://, https://, https://, and https://.
User Interface Layer▲
These classes link the data from a database to data-aware widgets. They include https://, https://, and https://. These classes are designed to work with Qt's model/view framework.
Note that a https:// object must be instantiated before using any of these classes.
▲
| https:// |


