|
KDbCursor * | prepareQuery (const KDbEscapedString &sql, int cursor_options=0) override |
|
KDbCursor * | prepareQuery (KDbQuerySchema *query, int cursor_options=0) override |
|
KDbPreparedStatement | prepareStatement (KDbPreparedStatement::StatementType type, KDbFieldList *fields) override |
|
| ~KDbConnection () override |
|
tristate | alterTable (KDbTableSchema *tableSchema, KDbTableSchema *newTableSchema) |
|
bool | alterTableName (KDbTableSchema *tableSchema, const QString &newName, AlterTableNameOptions options=AlterTableNameOption::Default) |
|
virtual QString | anyAvailableDatabaseName () |
|
bool | autoCommit () const |
|
KDbTransaction | beginTransaction () |
|
void | clearResult () |
|
bool | closeDatabase () |
|
bool | commitTransaction (KDbTransaction transaction=KDbTransaction(), KDbTransaction::CommitOptions options=KDbTransaction::CommitOptions()) |
|
bool | connect () |
|
tristate | containsTable (const QString &tableName) |
|
bool | copyDataBlock (int sourceObjectID, int destObjectID, const QString &dataID=QString()) |
|
KDbTableSchema * | copyTable (const KDbTableSchema &tableSchema, const KDbObject &newData) |
|
KDbTableSchema * | copyTable (const QString &tableName, const KDbObject &newData) |
|
bool | createDatabase (const QString &dbName) |
|
bool | createTable (KDbTableSchema *tableSchema, CreateTableOptions options=CreateTableOption::Default) |
|
QString | currentDatabase () const |
|
KDbConnectionData | data () const |
|
bool | databaseExists (const QString &dbName, bool ignoreErrors=true) |
|
QStringList | databaseNames (bool also_system_db=false) |
|
KDbProperties | databaseProperties () const |
|
KDbVersionInfo | databaseVersion () const |
|
KDbTransaction | defaultTransaction () const |
|
bool | deleteCursor (KDbCursor *cursor) |
|
bool | disconnect () |
|
KDbDriver * | driver () const |
|
bool | dropDatabase (const QString &dbName=QString()) |
|
bool | dropQuery (const QString &queryName) |
|
bool | dropQuery (KDbQuerySchema *querySchema) |
|
tristate | dropTable (const QString &tableName) |
|
tristate | dropTable (KDbTableSchema *tableSchema) |
|
virtual QString | escapeIdentifier (const QString &id) const |
|
virtual KDbEscapedString | escapeString (const QString &str) const |
|
KDbCursor * | executeQuery (const KDbEscapedString &sql, KDbCursor::Options options=KDbCursor::Option::None) |
|
KDbCursor * | executeQuery (KDbQuerySchema *query, const QList< QVariant > ¶ms, KDbCursor::Options options=KDbCursor::Option::None) |
|
KDbCursor * | executeQuery (KDbQuerySchema *query, KDbCursor::Options options=KDbCursor::Option::None) |
|
KDbCursor * | executeQuery (KDbTableSchema *table, KDbCursor::Options options=KDbCursor::Option::None) |
|
bool | executeSql (const KDbEscapedString &sql) |
|
KDbField * | findSystemFieldName (const KDbFieldList &fieldlist) |
|
QSharedPointer< KDbSqlResult > | insertRecord (KDbFieldList *fields, const QList< QVariant > &values) |
|
QSharedPointer< KDbSqlResult > | insertRecord (KDbTableSchema *tableSchema, const QList< QVariant > &values) |
|
bool | isConnected () const |
|
bool | isDatabaseUsed () const |
|
tristate | isEmpty (KDbTableSchema *table) |
|
bool | isInternalTableSchema (const QString &tableName) |
|
tristate | loadDataBlock (int objectID, QString *dataString, const QString &dataID=QString()) |
|
tristate | loadObjectData (int type, const QString &name, KDbObject *object) |
|
tristate | loadObjectData (int type, int id, KDbObject *object) |
|
QList< int > | objectIds (int objectType, bool *ok=nullptr) |
|
QStringList | objectNames (int objectType=KDb::AnyObjectType, bool *ok=nullptr) |
|
KDbConnectionOptions * | options () |
|
virtual KDbCursor * | prepareQuery (const KDbEscapedString &sql, KDbCursor::Options options=KDbCursor::Option::None)=0 |
|
KDbCursor * | prepareQuery (KDbQuerySchema *query, const QList< QVariant > ¶ms, KDbCursor::Options options=KDbCursor::Option::None) |
|
virtual KDbCursor * | prepareQuery (KDbQuerySchema *query, KDbCursor::Options options=KDbCursor::Option::None)=0 |
|
KDbCursor * | prepareQuery (KDbTableSchema *table, KDbCursor::Options options=KDbCursor::Option::None) |
|
QSharedPointer< KDbSqlResult > | prepareSql (const KDbEscapedString &sql) |
|
KDbPreparedStatement | prepareStatement (KDbPreparedStatement::Type type, KDbFieldList *fields, const QStringList &whereFieldNames=QStringList()) |
|
QList< int > | queryIds (bool *ok=nullptr) |
|
KDbQuerySchema * | querySchema (const QString &queryName) |
|
KDbQuerySchema * | querySchema (int queryId) |
|
tristate | querySingleNumber (const KDbEscapedString &sql, int *number, int column=0, QueryRecordOptions options=QueryRecordOption::Default) |
|
tristate | querySingleNumber (KDbQuerySchema *query, int *number, const QList< QVariant > ¶ms, int column=0, QueryRecordOptions options=QueryRecordOption::Default) |
|
tristate | querySingleNumber (KDbQuerySchema *query, int *number, int column=0, QueryRecordOptions options=QueryRecordOption::Default) |
|
tristate | querySingleRecord (const KDbEscapedString &sql, KDbRecordData *data, QueryRecordOptions options=QueryRecordOption::Default) |
|
tristate | querySingleRecord (KDbQuerySchema *query, KDbRecordData *data, const QList< QVariant > ¶ms, QueryRecordOptions options=QueryRecordOption::Default) |
|
tristate | querySingleRecord (KDbQuerySchema *query, KDbRecordData *data, QueryRecordOptions options=QueryRecordOption::Default) |
|
tristate | querySingleString (const KDbEscapedString &sql, QString *value, int column=0, QueryRecordOptions options=QueryRecordOption::Default) |
|
tristate | querySingleString (KDbQuerySchema *query, QString *value, const QList< QVariant > ¶ms, int column=0, QueryRecordOptions options=QueryRecordOption::Default) |
|
tristate | querySingleString (KDbQuerySchema *query, QString *value, int column=0, QueryRecordOptions options=QueryRecordOption::Default) |
|
bool | queryStringList (const KDbEscapedString &sql, QStringList *list, int column=0) |
|
bool | queryStringList (KDbQuerySchema *query, QStringList *list, const QList< QVariant > ¶ms, int column=0) |
|
bool | queryStringList (KDbQuerySchema *query, QStringList *list, int column=0) |
|
virtual KDbEscapedString | recentSqlString () const |
|
int | recordCount (const KDbEscapedString &sql) |
|
int | recordCount (const KDbTableSchema &tableSchema) |
|
int | recordCount (KDbQuerySchema *querySchema, const QList< QVariant > ¶ms=QList< QVariant >()) |
|
int | recordCount (KDbTableOrQuerySchema *tableOrQuery, const QList< QVariant > ¶ms=QList< QVariant >()) |
|
bool | removeDataBlock (int objectID, const QString &dataID=QString()) |
|
bool | removeObject (int objId) |
|
tristate | resultExists (const KDbEscapedString &sql, QueryRecordOptions options=QueryRecordOption::Default) |
|
bool | rollbackTransaction (KDbTransaction trans=KDbTransaction(), KDbTransaction::CommitOptions options=KDbTransaction::CommitOptions()) |
|
KDbServerVersionInfo | serverVersion () const |
|
bool | setAutoCommit (bool on) |
|
void | setAvailableDatabaseName (const QString &dbName) |
|
void | setDefaultTransaction (const KDbTransaction &trans) |
|
bool | setQuerySchemaObsolete (const QString &queryName) |
|
bool | storeDataBlock (int objectID, const QString &dataString, const QString &dataID=QString()) |
|
bool | storeNewObjectData (KDbObject *object) |
|
bool | storeObjectData (KDbObject *object) |
|
QList< int > | tableIds (bool *ok=nullptr) |
|
QStringList | tableNames (bool alsoSystemTables=false, bool *ok=nullptr) |
|
KDbTableSchema * | tableSchema (const QString &tableName) |
|
KDbTableSchema * | tableSchema (int tableId) |
|
QList< KDbTransaction > | transactions () |
|
bool | useDatabase (const QString &dbName=QString(), bool kexiCompatible=true, bool *cancelled=nullptr, KDbMessageHandler *msgHandler=nullptr) |
|
bool | useTemporaryDatabaseIfNeeded (QString *name) |
|
| KDbResultable (const KDbResultable &other) |
|
void | clearResult () |
|
KDbMessageHandler * | messageHandler () const |
|
KDbResultable & | operator= (const KDbResultable &other) |
|
KDbResult | result () const |
|
void | setMessageHandler (KDbMessageHandler *handler) |
|
void | showMessage () |
|
|
| SybaseConnection (KDbDriver *driver, const KDbConnectionData &connData) |
|
virtual bool | drv_afterInsert (const QString &table, KDbFieldList *fields) |
|
virtual bool | drv_afterUpdate (const QString &table, KDbFieldList *fields) |
|
virtual bool | drv_beforeInsert (const QString &table, KDbFieldList *fields) |
|
virtual bool | drv_beforeUpdate (const QString &table, KDbFieldList *fields) |
|
virtual bool | drv_closeDatabase () |
|
virtual bool | drv_connect (KDbServerVersionInfo *version) |
|
virtual bool | drv_containsTable (const QString &tableName) |
|
virtual bool | drv_createDatabase (const QString &dbName=QString()) |
|
virtual bool | drv_disconnect () |
|
virtual bool | drv_dropDatabase (const QString &dbName=QString()) |
|
virtual bool | drv_executeSql (const KDbEscapedString &sql) |
|
virtual bool | drv_getDatabasesList (QStringList *list) |
|
virtual bool | drv_getTablesList (QStringList *list) |
|
virtual quint64 | drv_lastInsertRecordId () |
|
virtual bool | drv_useDatabase (const QString &dbName=QString(), bool *cancelled=0, KDbMessageHandler *msgHandler=0) |
|
virtual QString | serverResultName () const |
|
| KDbConnection (KDbDriver *driver, const KDbConnectionData &connData, const KDbConnectionOptions &options) |
|
void | addCursor (KDbCursor *cursor) |
|
bool | beginAutoCommitTransaction (KDbTransactionGuard *tg) |
|
bool | checkConnected () |
|
bool | checkIfColumnExists (KDbCursor *cursor, int column) |
|
bool | checkIsDatabaseUsed () |
|
bool | commitAutoCommitTransaction (const KDbTransaction &trans) |
|
bool | deleteAllRecords (KDbQuerySchema *query) |
|
bool | deleteRecord (KDbQuerySchema *query, KDbRecordData *data, bool useRecordId=false) |
|
void | destroy () |
|
tristate | dropTableInternal (KDbTableSchema *tableSchema, bool alsoRemoveSchema) |
|
virtual bool | drv_alterTableName (KDbTableSchema *tableSchema, const QString &newName) |
|
virtual KDbTransactionData * | drv_beginTransaction () |
|
virtual tristate | drv_changeFieldProperty (KDbTableSchema *table, KDbField *field, const QString &propertyName, const QVariant &value) |
|
virtual bool | drv_commitTransaction (KDbTransactionData *trans) |
|
virtual bool | drv_connect ()=0 |
|
virtual bool | drv_copyTableData (const KDbTableSchema &tableSchema, const KDbTableSchema &destinationTableSchema) |
|
virtual bool | drv_createTable (const KDbTableSchema &tableSchema) |
|
virtual bool | drv_createTable (const QString &tableName) |
|
virtual bool | drv_databaseExists (const QString &dbName, bool ignoreErrors=true) |
|
virtual bool | drv_dropTable (const QString &tableName) |
|
virtual bool | drv_getServerVersion (KDbServerVersionInfo *version)=0 |
|
virtual QStringList | drv_getTableNames (bool *ok) |
|
virtual bool | drv_isDatabaseUsed () const |
|
virtual KDbSqlResult * | drv_prepareSql (const KDbEscapedString &sql)=0 |
|
virtual bool | drv_rollbackTransaction (KDbTransactionData *trans) |
|
virtual bool | drv_setAutoCommit (bool on) |
|
KDbCursor * | executeQueryInternal (const KDbEscapedString &sql, KDbQuerySchema *query, const QList< QVariant > *params) |
|
bool | insertRecord (KDbQuerySchema *query, KDbRecordData *data, KDbRecordEditBuffer *buf, bool getRecordId=false) |
|
QSharedPointer< KDbSqlResult > | insertRecordInternal (const QString &tableSchemaName, KDbFieldList *fields, const KDbEscapedString &sql) |
|
bool | loadExtendedTableSchemaData (KDbTableSchema *tableSchema) |
|
virtual KDbPreparedStatementInterface * | prepareStatementInternal ()=0 |
|
tristate | querySingleNumberInternal (const KDbEscapedString *sql, int *number, KDbQuerySchema *query, const QList< QVariant > *params, int column, QueryRecordOptions options) |
|
tristate | querySingleRecordInternal (KDbRecordData *data, const KDbEscapedString *sql, KDbQuerySchema *query, const QList< QVariant > *params, QueryRecordOptions options) |
|
tristate | querySingleStringInternal (const KDbEscapedString *sql, QString *value, KDbQuerySchema *query, const QList< QVariant > *params, int column, QueryRecordOptions options) |
|
bool | queryStringListInternal (const KDbEscapedString *sql, QStringList *list, KDbQuerySchema *query, const QList< QVariant > *params, int column, bool(*filterFunction)(const QString &)) |
|
void | removeMe (KDbTableSchema *ts) |
|
bool | rollbackAutoCommitTransaction (const KDbTransaction &trans) |
|
KDbField * | setupField (const KDbRecordData &data) |
|
bool | setupObjectData (const KDbRecordData &data, KDbObject *object) |
|
bool | storeExtendedTableSchemaData (KDbTableSchema *tableSchema) |
|
bool | storeMainFieldSchema (KDbField *field) |
|
void | takeCursor (KDbCursor *cursor) |
|
bool | updateRecord (KDbQuerySchema *query, KDbRecordData *data, KDbRecordEditBuffer *buf, bool useRecordId=false) |
|
Provides database connection, allowing queries and data modification.
Definition at line 32 of file SybaseConnection.h.