mysql_reader

class mysql2pgsql.lib.mysql_reader.DB(options)

Class that wraps MySQLdb functions that auto reconnects thus (hopefully) preventing the frustrating “server has gone away” error. Also adds helpful helper functions.

close()
connect()
cursor(cursorclass=<class 'MySQLdb.cursors.Cursor'>)
list_tables()
query(sql, args=(), one=False, large=False)
query_many(sql, args, large)
query_one(sql, args)
class mysql2pgsql.lib.mysql_reader.MysqlReader(options)
class Table(reader, name)
columns
foreign_keys
indexes
name
query_for
MysqlReader.close()
MysqlReader.read(table)
MysqlReader.tables

Previous topic

mysql2pgsql

Next topic

postgres_db_writer

This Page