![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "qsql_odbc_p.h"#include <qsqlrecord.h>#include <qcoreapplication.h>#include <qdatetime.h>#include <qlist.h>#include <qloggingcategory.h>#include <qmath.h>#include <qsqlerror.h>#include <qsqlfield.h>#include <qsqlindex.h>#include <qstringconverter.h>#include <qstringlist.h>#include <qvariant.h>#include <qvarlengtharray.h>#include <QDebug>#include <QSqlQuery>#include <QtSql/private/qsqldriver_p.h>#include <QtSql/private/qsqlresult_p.h>#include "private/qtools_p.h"#include "moc_qsql_odbc_p.cpp"Go to the source code of this file.
Classes | |
| class | SqlStmtHandle |
| class | QODBCDriverPrivate |
| class | QODBCResult |
| class | QODBCResultPrivate |
| struct | DiagRecord |
Macros | |
| #define | SQL_SS_TIME2 (-154) |
| #define | ODBC_CHECK_DRIVER |
Functions | |
| template<typename C, int SIZE = sizeof(SQLTCHAR)> | |
| static QString | fromSQLTCHAR (const C &input, qsizetype size=-1) |
| template<int SIZE = sizeof(SQLTCHAR)> | |
| QStringConverter::Encoding | encodingForSqlTChar () |
| static QVarLengthArray< SQLTCHAR > | toSQLTCHAR (QStringView input) |
| static QList< DiagRecord > | qWarnODBCHandle (int handleType, SQLHANDLE handle) |
| static QList< DiagRecord > | qODBCWarn (const SQLHANDLE hStmt, const SQLHANDLE envHandle=nullptr, const SQLHANDLE pDbC=nullptr) |
| static QList< DiagRecord > | qODBCWarn (const QODBCResultPrivate *odbc) |
| static QList< DiagRecord > | qODBCWarn (const QODBCDriverPrivate *odbc) |
| static DiagRecord | combineRecords (const QList< DiagRecord > &records) |
| static QSqlError | errorFromDiagRecords (const QString &err, QSqlError::ErrorType type, const QList< DiagRecord > &records) |
| static QString | errorStringFromDiagRecords (const QList< DiagRecord > &records) |
| template<class T> | |
| static void | qSqlWarning (const QString &message, T &&val) |
| template<typename T> | |
| static QSqlError | qMakeError (const QString &err, QSqlError::ErrorType type, const T *p) |
| static QMetaType | qDecodeODBCType (SQLSMALLINT sqltype, bool isSigned) |
| template<typename CT> | |
| static QVariant | getStringDataImpl (SQLHANDLE hStmt, SQLUSMALLINT column, qsizetype colSize, SQLSMALLINT targetType) |
| static QVariant | qGetStringData (SQLHANDLE hStmt, SQLUSMALLINT column, int colSize, bool unicode) |
| static QVariant | qGetBinaryData (SQLHANDLE hStmt, int column) |
| template<typename T> | |
| static QVariant | qGetIntData (SQLHANDLE hStmt, int column) |
| template<typename T> | |
| static QVariant | qGetFloatingPointData (SQLHANDLE hStmt, int column) |
| static bool | isAutoValue (const SQLHANDLE hStmt, int column) |
| static QSqlField | qMakeFieldInfo (const SQLHANDLE hStmt, const QODBCDriverPrivate *p) |
| static QSqlField | qMakeFieldInfo (const QODBCResultPrivate *p, int i) |
| static size_t | qGetODBCVersion (const QString &connOpts) |
| static SQLRETURN | qt_string_SQLSetConnectAttr (SQLHDBC handle, SQLINTEGER attr, QStringView val) |
Variables | |
| static constexpr int | COLNAMESIZE = 256 |
| static constexpr SQLSMALLINT | TABLENAMESIZE = 128 |
| static constexpr SQLSMALLINT | qParamType [4] = { SQL_PARAM_INPUT, SQL_PARAM_INPUT, SQL_PARAM_OUTPUT, SQL_PARAM_INPUT_OUTPUT } |
| #define ODBC_CHECK_DRIVER |
Definition at line 41 of file qsql_odbc.cpp.
| #define SQL_SS_TIME2 (-154) |
Definition at line 37 of file qsql_odbc.cpp.
|
static |
Definition at line 294 of file qsql_odbc.cpp.
Referenced by errorFromDiagRecords(), and errorStringFromDiagRecords().
| QStringConverter::Encoding encodingForSqlTChar | ( | ) |
Definition at line 90 of file qsql_odbc.cpp.
|
static |
Definition at line 306 of file qsql_odbc.cpp.
References combineRecords().
|
static |
Definition at line 317 of file qsql_odbc.cpp.
References combineRecords().
|
inlinestatic |
Definition at line 72 of file qsql_odbc.cpp.
|
static |
Definition at line 406 of file qsql_odbc.cpp.
|
static |
Definition at line 565 of file qsql_odbc.cpp.
|
static |
Definition at line 341 of file qsql_odbc.cpp.
|
static |
Definition at line 467 of file qsql_odbc.cpp.
References COLNAMESIZE.
|
static |
Definition at line 549 of file qsql_odbc.cpp.
|
static |
Definition at line 525 of file qsql_odbc.cpp.
|
static |
Definition at line 662 of file qsql_odbc.cpp.
|
static |
Definition at line 454 of file qsql_odbc.cpp.
|
static |
Definition at line 334 of file qsql_odbc.cpp.
|
static |
Definition at line 599 of file qsql_odbc.cpp.
References COLNAMESIZE, and TABLENAMESIZE.
|
static |
Definition at line 580 of file qsql_odbc.cpp.
|
static |
Definition at line 289 of file qsql_odbc.cpp.
|
static |
Definition at line 284 of file qsql_odbc.cpp.
|
static |
Definition at line 273 of file qsql_odbc.cpp.
Definition at line 324 of file qsql_odbc.cpp.
|
static |
Definition at line 700 of file qsql_odbc.cpp.
|
static |
Definition at line 236 of file qsql_odbc.cpp.
|
inlinestatic |
Definition at line 103 of file qsql_odbc.cpp.
|
staticconstexpr |
Definition at line 43 of file qsql_odbc.cpp.
Referenced by qGetBinaryData(), and qMakeFieldInfo().
|
staticconstexpr |
Definition at line 46 of file qsql_odbc.cpp.
|
staticconstexpr |
Definition at line 44 of file qsql_odbc.cpp.
Referenced by qMakeFieldInfo().