16.11. Data Definitions for libQtSql

This section defines global identifiers and their values that are associated with interfaces contained in libQtSql. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.

16.11.1. QtSql/qsql.h


enum N4QSql8LocationE {
    AfterLastRow,
    AfterLast,
    BeforeFirstRow,
    BeforeFirst
};
enum N4QSql13ParamTypeFlagE {
    In,
    Out,
    InOut,
    Binary
};
class QFlags < QSql::ParamTypeFlag >;
typedef N4QSql9ParamTypeE;
enum N4QSql9TableTypeE {
    Tables,
    SystemTables,
    Views,
    AllTables
};
enum N4QSql2OpE {
    None,
    Insert,
    Update,
    Delete
};
enum N4QSql7ConfirmE {
    Cancel,
    No,
    Yes
};

16.11.2. QtSql/qsqldatabase.h


class QSqlDriverCreatorBase;
class QSqlDatabase;

16.11.3. QtSql/qsqldriver.h


class QSqlDriver;
enum N10QSqlDriver13DriverFeatureE {
    Transactions,
    QuerySize,
    BLOB,
    Unicode,
    PreparedQueries,
    NamedPlaceholders,
    PositionalPlaceholders,
    LastInsertId,
    BatchOperations
};
enum N10QSqlDriver13StatementTypeE {
    WhereStatement,
    SelectStatement,
    UpdateStatement,
    InsertStatement,
    DeleteStatement
};
enum N10QSqlDriver14IdentifierTypeE {
    FieldName,
    TableName
};

16.11.4. QtSql/qsqldriverplugin.h


struct _Z26QSqlDriverFactoryInterface;
class QSqlDriverPlugin;

16.11.5. QtSql/qsqlerror.h


class QSqlError;
enum N9QSqlError9ErrorTypeE {
    NoError,
    None,
    ConnectionError,
    Connection,
    StatementError,
    Statement,
    TransactionError,
    Transaction,
    UnknownError,
    Unknown
};

16.11.6. QtSql/qsqlfield.h


class QSqlField;
enum N9QSqlField14RequiredStatusE {
    Unknown,
    Optional,
    Required
};

16.11.7. QtSql/qsqlindex.h


class QSqlIndex;

16.11.8. QtSql/qsqlquery.h


class QSqlQuery;

16.11.9. QtSql/qsqlquerymodel.h


class QSqlQueryModel;

16.11.10. QtSql/qsqlrecord.h


class QSqlRecord;

16.11.11. QtSql/qsqlrelationaltablemodel.h


typedef enum QtValidLicenseForSqlModule QtSqlModule;
class QSqlRelation;
class QSqlRelationalTableModel;

16.11.12. QtSql/qsqlresult.h


class QSqlResult;
enum N10QSqlResult13BindingSyntaxE {
    PositionalBinding,
    BindByPosition,
    NamedBinding,
    BindByName
};
enum N10QSqlResult20VirtualHookOperationE {
    BatchOperation
};

16.11.13. QtSql/qsqltablemodel.h


class QSqlTableModel;
enum N14QSqlTableModel12EditStrategyE {
    OnFieldChange,
    OnRowChange,
    OnManualSubmit
};