API Documentation

class DB

This is the ZMySQLDA Database Connection Object.


__module__ = __builtin__

Methods

tables(self, rdb=0, _care=('TABLE', 'VIEW')):

Returns a list of tables in the current database.

_begin(self, *ignored):

Begin a transaction (when TM is enabled).

_finish(self, *ignored):

Commit a transaction (when TM is enabled).

_abort(self, *ignored):

Rollback a transaction (when TM is enabled).

__init__(self, connection):

connection blah blah

query(self, query_string, max_rows=1000):

Execute query_string and return at most max_rows.

columns(self, table_name):

Returns a list of column descriptions for table_name.