KDb
SqliteConnection.cpp
49 this->options()->setCaption(propertyName, SqliteConnection::tr("Extra paths for SQLite plugins"));
95 return resultExists(KDbEscapedString("SELECT name FROM sqlite_master WHERE type='table' AND name LIKE %1")
103 if (!(cursor = executeQuery(KDbEscapedString("SELECT name FROM sqlite_master WHERE type='table'")))) {
138//! @todo int exclusiveFlag = KDbConnection::isReadOnly() ? SQLITE_OPEN_READONLY : SQLITE_OPEN_WRITE_LOCKED; // <-- shared read + (if !r/o): exclusive write
170 // The default setting is determined by the SQLITE_SECURE_DELETE compile-time option but we overwrite it here.
173//! @todo add connection flags to the driver and global setting to control the "secure delete" pragma
230 "Check the file's permissions and whether it is already opened and locked by another application."));
235 "Check the file's permissions and whether it is already opened and locked by another application."));
282KDbCursor* SqliteConnection::prepareQuery(const KDbEscapedString& sql, KDbCursor::Options options)
Database specific connection data, e.g. host, port.
Definition KDbConnectionData.shared.h:36
Generic options for a single connection. The options are accessible using key/value pairs....
Definition KDbConnectionOptions.h:36
void setCaption(const QByteArray &name, const QString &caption)
Sets caption for option name to caption.
Definition KDbConnection.cpp:135
void insert(const QByteArray &name, const QVariant &value, const QString &caption=QString())
Inserts option with a given name, value and caption.
Definition KDbConnection.cpp:121
Provides database connection, allowing queries and data modification.
Definition KDbConnection.h:52
virtual KDbEscapedString escapeString(const QString &str) const
Definition KDbConnection.cpp:3535
KDbCursor * executeQuery(const KDbEscapedString &sql, KDbCursor::Options options=KDbCursor::Option::None)
Definition KDbConnection.cpp:2132
tristate resultExists(const KDbEscapedString &sql, QueryRecordOptions options=QueryRecordOption::Default)
Definition KDbConnection.cpp:2556
virtual QVariant value(int i)=0
Definition KDbMessageHandler.h:135
Prepared statement interface for backend-dependent implementations.
Definition KDbPreparedStatementInterface.h:32
KDbQuerySchema provides information about database query.
Definition KDbQuerySchema.h:46
Definition KDbResult.shared.h:35
void setServerErrorCode(int errorCode)
Sets an implementation-specific error code of server-side operation.
Definition KDbResult.cpp:74
The KDbSqlResult class abstracts result of a raw SQL query preparation by KDbConnection::prepareSql()
Definition KDbSqlResult.h:45
Property property(const QByteArray &name) const
Definition KDbUtils.cpp:699
bool drv_executeSql(const KDbEscapedString &sql) override
Executes query for a raw SQL statement sql without returning resulting records.
Definition SqliteConnection.cpp:321
KDbSqlResult * drv_prepareSql(const KDbEscapedString &sql) override
Prepares query for a raw SQL statement sql with possibility of returning records.
Definition SqliteConnection.cpp:292
KDbCursor * prepareQuery(const KDbEscapedString &sql, KDbCursor::Options options=KDbCursor::Option::None) override
Definition SqliteConnection.cpp:282
tristate drv_containsTable(const QString &tableName) override
Definition SqliteConnection.cpp:93
KDbPreparedStatementInterface * prepareStatementInternal() override
Definition SqliteConnection.cpp:356
bool drv_createDatabase(const QString &dbName=QString()) override
Definition SqliteConnection.cpp:121
bool drv_closeDatabase() override
Definition SqliteConnection.cpp:247
QString serverResultName() const override
Implemented for KDbResultable.
Definition SqliteConnection.cpp:351
SqliteConnection(KDbDriver *driver, const KDbConnectionData &connData, const KDbConnectionOptions &options)
Definition SqliteConnection.cpp:39
bool drv_getServerVersion(KDbServerVersionInfo *version) override
Definition SqliteConnection.cpp:68
bool drv_getDatabasesList(QStringList *list) override
Definition SqliteConnection.cpp:86
bool drv_useDatabase(const QString &dbName=QString(), bool *cancelled=nullptr, KDbMessageHandler *msgHandler=nullptr) override
Definition SqliteConnection.cpp:127
bool drv_dropDatabase(const QString &dbName=QString()) override
Definition SqliteConnection.cpp:267
3-state logical type with three values: true, false and cancelled and convenient operators.
Definition KDbTristate.h:101
KDB_EXPORT QStringList libraryPaths()
QString path(const QString &relativePath)
KIOCORE_EXPORT QStringList list(const QString &fileClass)
KGuiItem ok()
QCA_EXPORT QStringList pluginPaths()
const char * constData() const const
QString fromNativeSeparators(const QString &pathName)
QString toNativeSeparators(const QString &pathName)
bool exists() const const
bool remove()
void append(QList< T > &&value)
void clear()
QRegularExpressionMatch match(QStringView subjectView, qsizetype offset, MatchType matchType, MatchOptions matchOptions) const const
QByteArray toUtf8() const const
QString toString() const const
QStringList toStringList() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:11:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:11:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.