kexi

KexiMigration::PqxxMigrate Class Reference

Inheritance diagram for KexiMigration::PqxxMigrate:

KexiMigration::KexiMigrate KexiDB::Object List of all members.

Detailed Description

Definition at line 34 of file pqxxmigrate.h.


Public Member Functions

 PqxxMigrate (QObject *parent, const char *name, const QStringList &args=QStringList())
virtual ~PqxxMigrate ()

Protected Member Functions

virtual bool drv_tableNames (QStringList &tablenames)
virtual bool drv_readTableSchema (const QString &originalName, KexiDB::TableSchema &tableSchema)
virtual bool drv_connect ()
virtual bool drv_disconnect ()
virtual tristate drv_queryStringListFromSQL (const QString &sqlStatement, uint columnNumber, QStringList &stringList, int numRecords=-1)
virtual tristate drv_fetchRecordFromSQL (const QString &sqlStatement, KexiDB::RowData &data, bool &firstRecord)
virtual bool drv_copyTable (const QString &srcTable, KexiDB::Connection *destConn, KexiDB::TableSchema *dstTable)

Member Function Documentation

bool PqxxMigrate::drv_tableNames ( QStringList &  tablenames  )  [protected, virtual]

Get table names in source database (driver specific).

Implements KexiMigration::KexiMigrate.

Definition at line 127 of file pqxxmigrate.cpp.

bool PqxxMigrate::drv_readTableSchema ( const QString &  originalName,
KexiDB::TableSchema tableSchema 
) [protected, virtual]

Read schema for a given table (driver specific).

Implements KexiMigration::KexiMigrate.

Definition at line 80 of file pqxxmigrate.cpp.

bool PqxxMigrate::drv_connect (  )  [protected, virtual]

Connect to source database (driver specific).

Implements KexiMigration::KexiMigrate.

Definition at line 192 of file pqxxmigrate.cpp.

bool PqxxMigrate::drv_disconnect (  )  [protected, virtual]

Disconnect from source database (driver specific).

Implements KexiMigration::KexiMigrate.

Definition at line 248 of file pqxxmigrate.cpp.

tristate PqxxMigrate::drv_queryStringListFromSQL ( const QString &  sqlStatement,
uint  columnNumber,
QStringList &  stringList,
int  numRecords = -1 
) [protected, virtual]

Fetches single string at column columnNumber from result obtained by running sqlStatement. On success the result is stored in string and true is returned.

Returns:
cancelled if there are no records available.

Reimplemented from KexiMigration::KexiMigrate.

Definition at line 427 of file pqxxmigrate.cpp.

tristate PqxxMigrate::drv_fetchRecordFromSQL ( const QString &  sqlStatement,
KexiDB::RowData data,
bool &  firstRecord 
) [protected, virtual]

Fetches single record from result obtained by running sqlStatement. firstRecord should be first initialized to true, so the method can run the query at first call and then set it will set firstRecord to false, so subsequent calls will only fetch records. On success the result is stored in data and true is returned, data is resized to appropriate size. cancelled is returned on EOF.

Todo:
SQL-dependent!

Reimplemented from KexiMigration::KexiMigrate.

Definition at line 494 of file pqxxmigrate.cpp.

bool PqxxMigrate::drv_copyTable ( const QString &  srcTable,
KexiDB::Connection destConn,
KexiDB::TableSchema dstTable 
) [protected, virtual]

Copy PostgreSQL table to KexiDB database

Implements KexiMigration::KexiMigrate.

Definition at line 523 of file pqxxmigrate.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys