Module ezsqlobject :: Class EzMysqlDb
[show private | hide private]
[frames | no frames]

Class EzMysqlDb

EzSqlDb --+
          |
         EzMysqlDb


EzSqlDb subclass specific for MySQL databases
Method Summary
  __init__(self, **kw)
Creates a MySQL db connection
    Inherited from EzSqlDb
  __getattr__(self, name)
  createNewlyAddedTables(self)
  defTable(self, _tablename, **kw)
Returns a class object defining an SQLObject table
  doQuery(self, query)
Executes/returns an arbitrary MySQL query
  dropTable(self, tablename, ifExists, dropJoinTables)
Removes a table from the database.
  dump(self)
Interactive utility which dumps out the whole db
  sync(self)
Reads a list of tables from the database
  tableFromDb(self, name)
  _log(self, level, msg)

Class Variable Summary
classobj _connclass = SQLObject.DBConnection.MySQLConnection

Method Details

__init__(self, **kw)
(Constructor)

Creates a MySQL db connection

No arguments

Keywords:
  • host - hostname on which MySQL server is running (optional)
  • dbname - name of database (compulsory)
  • dbuser - MySQL username to connect with (compulsory)
  • dbpass - password to use (compulsory)
Overrides:
ezsqlobject.EzSqlDb.__init__

Generated by Epydoc 2.0 on Fri Mar 26 13:22:45 2004 http://epydoc.sf.net