Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsql_sqlite.cpp File Reference

(1dd3f465707dd3bee2b72c5f75f13984522eee44)

#include "qsql_sqlite_p.h"
#include <qcoreapplication.h>
#include <qdatetime.h>
#include <qdebug.h>
#include <qlist.h>
#include <qloggingcategory.h>
#include <qsqlerror.h>
#include <qsqlfield.h>
#include <qsqlindex.h>
#include <qsqlquery.h>
#include <QtSql/private/qsqlcachedresult_p.h>
#include <QtSql/private/qsqldriver_p.h>
#include <qstringlist.h>
#include <qvariant.h>
#include <QScopedValueRollback>
#include <unistd.h>
#include <sqlite3.h>
#include <functional>
#include "moc_qsql_sqlite_p.cpp"
+ Include dependency graph for qsql_sqlite.cpp:

Go to the source code of this file.

Classes

class  QSQLiteResult
 
class  QSQLiteDriverPrivate
 
class  QSQLiteResultPrivate
 

Functions

static QT_BEGIN_NAMESPACE static Q_LOGGING_CATEGORY(lcSqlite, "qt.sql.sqlite") using namespace Qt int qGetColumnType (const QString &tpName)
 
static QSqlError qMakeError (sqlite3 *access, const QString &descr, QSqlError::ErrorType type, int errorCode)
 
static void _q_lower (sqlite3_context *context, int argc, sqlite3_value **argv)
 
static void _q_upper (sqlite3_context *context, int argc, sqlite3_value **argv)
 
static void handle_sqlite_callback (void *qobj, int aoperation, char const *adbname, char const *atablename, sqlite3_int64 arowid)
 

Function Documentation

◆ _q_lower()

static void _q_lower ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 667 of file qsql_sqlite.cpp.

References ba, context, QByteArray::data(), QString::fromUtf8(), Q_UNLIKELY, QByteArray::size(), and QString::toUtf8().

Referenced by QSQLiteDriver::open().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _q_upper()

static void _q_upper ( sqlite3_context * context,
int argc,
sqlite3_value ** argv )
static

Definition at line 679 of file qsql_sqlite.cpp.

References ba, context, QByteArray::data(), QString::fromUtf8(), Q_UNLIKELY, QByteArray::size(), and QString::toUtf8().

Referenced by QSQLiteDriver::open().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ handle_sqlite_callback()

static void handle_sqlite_callback ( void * qobj,
int aoperation,
char const * adbname,
char const * atablename,
sqlite3_int64 arowid )
static

Definition at line 1045 of file qsql_sqlite.cpp.

References QString::fromUtf8(), QMetaObject::invokeMethod(), Q_ARG, Q_UNUSED, and Qt::QueuedConnection.

Referenced by QSQLiteDriver::subscribeToNotification().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qGetColumnType()

static QT_BEGIN_NAMESPACE static Q_LOGGING_CATEGORY(lcSqlite, "qt.sql.sqlite") using namespace Qt int qGetColumnType ( const QString & tpName)
static

Definition at line 46 of file qsql_sqlite.cpp.

References typeName.

Referenced by QSQLiteDriverPrivate::getTableInfo(), and QSQLiteResultPrivate::initColumns().

+ Here is the caller graph for this function:

◆ qMakeError()

static QSqlError qMakeError ( sqlite3 * access,
const QString & descr,
QSqlError::ErrorType type,
int errorCode )
static

Definition at line 64 of file qsql_sqlite.cpp.

References QString::number().

Referenced by QSQLiteResult::exec(), QSQLiteResultPrivate::fetchNext(), and QSQLiteResult::prepare().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: