API Documentation

class DB

This is the ZMySQLDA Database Connection Object.


Methods

__init__(self, connection):

connection blah blah

_finish(self, *ignored):

Commit a transaction (when TM is enabled).

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.

_begin(self, *ignored):

Begin a transaction (when TM is enabled).

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

Returns a list of tables in the current database.

_abort(self, *ignored):

Rollback a transaction (when TM is enabled).