17.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.

17.11.1. QtSql/qsql.h


enum _ZN4QSql8LocationE {
    AfterLastRow = -2,
    AfterLast = -2,
    BeforeFirstRow = -1,
    BeforeFirst = -1
};
enum _ZN4QSql13ParamTypeFlagE {
    In = 1,
    Out = 2,
    InOut = 3,
    Binary = 4
};
class QFlags < QSql::ParamTypeFlag >;
typedef class QFlags < QSql::ParamTypeFlag > QSql::ParamType;
enum _ZN4QSql9TableTypeE {
    Tables = 1,
    SystemTables = 2,
    Views = 4,
    AllTables = 255
};
enum _ZN4QSql2OpE {
    None = -1,
    Insert = 0,
    Update = 1,
    Delete = 2
};
enum _ZN4QSql7ConfirmE {
    Cancel = -1,
    No = 0,
    Yes = 1
};

17.11.2. QtSql/qsqldatabase.h


class QSqlDriverCreatorBase;
class QSqlDatabase;

17.11.3. QtSql/qsqldriver.h


class QSqlDriver;
enum _ZN10QSqlDriver13DriverFeatureE {
    Transactions = 0,
    QuerySize = 1,
    BLOB = 2,
    Unicode = 3,
    PreparedQueries = 4,
    NamedPlaceholders = 5,
    PositionalPlaceholders = 6,
    LastInsertId = 7,
    BatchOperations = 8
};
enum _ZN10QSqlDriver13StatementTypeE {
    WhereStatement = 0,
    SelectStatement = 1,
    UpdateStatement = 2,
    InsertStatement = 3,
    DeleteStatement = 4
};
enum _ZN10QSqlDriver14IdentifierTypeE {
    FieldName = 0,
    TableName = 1
};

17.11.4. QtSql/qsqldriverplugin.h


struct QSqlDriverFactoryInterface;
class QSqlDriverPlugin;

17.11.5. QtSql/qsqlerror.h


class QSqlError;
enum _ZN9QSqlError9ErrorTypeE {
    NoError = 0,
    None = 0,
    ConnectionError = 1,
    Connection = 1,
    StatementError = 2,
    Statement = 2,
    TransactionError = 3,
    Transaction = 3,
    UnknownError = 4,
    Unknown = 4
};

17.11.6. QtSql/qsqlfield.h


class QSqlField;
enum _ZN9QSqlField14RequiredStatusE {
    Unknown = -1,
    Optional = 0,
    Required = 1
};

17.11.7. QtSql/qsqlindex.h


class QSqlIndex;

17.11.8. QtSql/qsqlquery.h


class QSqlQuery;

17.11.9. QtSql/qsqlquerymodel.h


class QSqlQueryModel;

17.11.10. QtSql/qsqlrecord.h


class QSqlRecord;

17.11.11. QtSql/qsqlrelationaltablemodel.h


typedef enum QtValidLicenseForSqlModule QtSqlModule;
class QSqlRelation;
class QSqlRelationalTableModel;

17.11.12. QtSql/qsqlresult.h


class QSqlResult;
enum _ZN10QSqlResult13BindingSyntaxE {
    PositionalBinding = 0,
    BindByPosition = 0,
    NamedBinding = 1,
    BindByName = 1
};
enum _ZN10QSqlResult20VirtualHookOperationE {
    BatchOperation = 0
};

17.11.13. QtSql/qsqltablemodel.h


class QSqlTableModel;
enum _ZN14QSqlTableModel12EditStrategyE {
    OnFieldChange = 0,
    OnRowChange = 1,
    OnManualSubmit = 2
};