Connects to MySQL DB, executes queries Autocommit is disabled by
default, commit is done with commit function Warnings are turned into
exceptions
|
|
|
get_autocommit_status(self,
var_type=' local ' )
returns Autocommit status This is an alias to get_autocommit() |
source code
|
|
|
|
|
|
|
query_select(self,
query)
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. |
source code
|
|
|
|
|
commit(self)
Commits all changes, returns Exception in case of failure |
source code
|
|
|
rollback(self)
Rolls back all commits, returns exception in case of failure |
source code
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|