concurrence.database.mysql.client – The concurrence mysql driver module

Platforms: Unix

class concurrence.database.mysql.client.Connection

Represents a single connection to a MySQL Database host.

close()
close this connection
command(cmd, cmd_text)
sends a COM_XXX command with the given text and possibly return a resultset (select)
commit()
Commits this connection
connect(host='localhost', port=3306, user='', passwd='', db='', autocommit=None, charset=None)
connects to the given host and port with user and passwd
init_db(cmd_text)
Sends a COM_INIT command with the given text
query(cmd_text)
Sends a COM_QUERY command with the given text and return a resultset (select)
rollback()
Issues a rollback on this connection
set_autocommit(commit)
Sets autocommit setting for this connection. True = on, False = off
set_charset(charset)
Sets the charset for this connections (used to decode string fields into unicode strings)
class concurrence.database.mysql.client.ResultSet(connection, field_count)

Represents the current resultset being read from a Connection. The resultset implements an iterator over rows. A Resultset must be iterated entirely and closed explicitly.

close(connection_close=False)
Closes the current resultset. Make sure you have iterated over all rows before closing it!

Previous topic

concurrence.http – The concurrence http module

Next topic

concurrence.web – The concurrence web module

This Page