24#include "migration/keximigrate.h"
25#include "kexidb/drivers/mySQL/mysqlconnection_p.h"
30 class MySQLMigrate : public KexiMigrate
37 MySqlConnectionInternal *d;
38 MYSQL_RES *m_mysqlres;
42 virtual bool drv_tableNames(TQStringList& tablenames);
45 virtual bool drv_readTableSchema(
48 virtual bool drv_connect();
49 virtual bool drv_disconnect();
51 virtual tristate drv_queryStringListFromSQL(
52 const TQString& sqlStatement, uint columnNumber,
53 TQStringList& stringList, int numRecords = -1);
55 virtual tristate drv_fetchRecordFromSQL( const TQString& sqlStatement,
58 virtual bool drv_copyTable( const TQString& srcTable,
61 virtual bool drv_progressSupported() { return true; }
62 virtual bool drv_getTableSize( const TQString& table, TQ_ULLONG& size);
71 MySQLMigrate(TQObject *parent, const char *name, const TQStringList& args = TQStringList());
77 const MYSQL_FIELD* fld);
79 TQStringList examineEnumField( const TQString& table,
80 const MYSQL_FIELD* fld);
81 void getConstraints( int mysqlConstraints, KexiDB::Field* fld);
Provides database connection, allowing queries and data modification.
KexiMigration::Data * data() const
3-state logical type with three values: true, false and cancelled and convenient operators.
TQValueVector< TQVariant > RowData structure for storing single record with type information
Framework for importing databases into native KexiDB databases.
|