Home | Trees | Indices | Help |
---|
|
object --+ | MysqlConnector
Connects to MySQL DB, executes queries Autocommit is disabled by default, commit is done with commit function Warnings are turned into exceptions
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Initialize DB connection. Turning warning into exceptions
|
Returns status of autocommit LOCAL/GLOBAL/SESSION variables (local by default) :return: tuple(dict) i.e. ({'Value': 'OFF', 'Variable_name': 'autocommit'},) |
Send/execute queries :param: str MySQL query :param: str 'one'/'all' Rows to be fetched :return: fetch = one dictionary i.e. {row_1} :return: fetch != one tuple with arguments dictionaries, each dictionary is a row i.e. ({row_first}, {row_second}, ... ,{row_last}) |
Sends query to DB. :param: str query :return: int Nr of rows updated (in case of updating with same value, query is successful but nr of rows updated = 0 |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon May 12 12:40:11 2014 | http://epydoc.sourceforge.net |