kexi
KexiMigration::MySQLMigrate Class Reference
Inheritance diagram for KexiMigration::MySQLMigrate:

Detailed Description
Definition at line 31 of file mysqlmigrate.h.
Public Member Functions | |
MySQLMigrate (QObject *parent, const char *name, const QStringList &args=QStringList()) | |
~MySQLMigrate () | |
KexiDB::Field::Type | type (const QString &table, const MYSQL_FIELD *t) |
KexiDB::Field::Type | examineBlobField (const QString &table, const MYSQL_FIELD *fld) |
QStringList | examineEnumField (const QString &table, const MYSQL_FIELD *fld) |
void | getConstraints (int mysqlConstraints, KexiDB::Field *fld) |
void | getOptions (int flags, KexiDB::Field *fld) |
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 bool | drv_copyTable (const QString &srcTable, KexiDB::Connection *destConn, KexiDB::TableSchema *dstTable) |
virtual bool | drv_progressSupported () |
virtual bool | drv_getTableSize (const QString &table, Q_ULLONG &size) |
Constructor & Destructor Documentation
|
Constructor (needed for trading interface).
Definition at line 52 of file mysqlmigrate.cpp. |
|
Destructor.
Definition at line 60 of file mysqlmigrate.cpp. |
Member Function Documentation
|
Connect to the db backend Implements KexiMigration::KexiMigrate. Definition at line 66 of file mysqlmigrate.cpp. |
|
Copy MySQL table to KexiDB database
Implements KexiMigration::KexiMigrate. Definition at line 150 of file mysqlmigrate.cpp. |
|
Disconnect from the db backend Implements KexiMigration::KexiMigrate. Definition at line 76 of file mysqlmigrate.cpp. |
|
Reimplemented from KexiMigration::KexiMigrate. Definition at line 179 of file mysqlmigrate.cpp. |
|
Get the types and properties for each column. Implements KexiMigration::KexiMigrate. Definition at line 84 of file mysqlmigrate.cpp. |
|
Get a list of tables and put into the supplied string list Implements KexiMigration::KexiMigrate. Definition at line 129 of file mysqlmigrate.cpp. |
|
Distinguish between a BLOB and a TEXT field. MySQL uses the same field type to identify BLOB and TEXT fields. This method queries the server to find out if a field is a binary field or a text field. It also considers the length of CHAR and VARCHAR fields to see whether Text or LongText is the appropriate Kexi field type. Assumes fld is a CHAR, VARCHAR, one of the BLOBs or TEXTs. Definition at line 290 of file mysqlmigrate.cpp. |
|
Get the strings that identify values in an enum field. Parse the type of a MySQL enum field as returned by the server in a 'DESCRIBE table' or 'SHOW COLUMNS FROM table' statement. The string returned by the server is in the form 'enum('option1','option2'). In this example, the result should be a string list containing two strings, "option1", "option2".
Definition at line 339 of file mysqlmigrate.cpp. |
|
Definition at line 404 of file mysqlmigrate.cpp. |
|
Convert a MySQL type to a KexiDB type, prompting user if necessary.
Definition at line 199 of file mysqlmigrate.cpp. |
The documentation for this class was generated from the following files: