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 :param cursor_class: Cursor type to use. See MySQLdb for more info :type cursor_class: DictCursor|Cursor|SSCursor|SSDictCursor
|
returns tuple Autocommit status i.e. ({'Value': 'ON', 'Variable_name':'autocommit'},) |
Send/execute SELECT queries, returns data from DB :param: str MySQL query :return: tuple with arguments dictionaries, each dictionary is a row of DB i.e. ({row_first}, {row_second}, ... ,{row_last}) |
Sends query to DB. Can be DELETE, UPDATE :param: str query :return: dict {DictCursor} |
Close cursor. Connection to DB is still open, new cursor can be created |
Close DB connection. All uncommitted changes are lost |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Tue Aug 26 11:35:12 2014 | http://epydoc.sourceforge.net |