A class to implement generic SQL Cursor operations.
|
__init__(self,
dbh=None,
sql=None,
force=None) |
source code
|
|
|
|
|
|
|
|
|
update_blob(self,
table_name,
column_name,
where_clause,
data,
**kwargs)
Abstraction for the update of a blob column which can vary wildly
between different database implementations. |
source code
|
|
|
execute(self,
*p,
**kw)
Execute a single query. |
source code
|
|
|
|
|
execute_bulk(self,
dict,
chunk_size=100)
Uses executemany but chops the incoming dict into chunks for each
call. |
source code
|
|
|
|
|
|
|
|
|
_execute_(self,
args,
kwargs)
Database specific execution of the query. |
source code
|
|
|
|
|
|
|
fetchone_dict(self)
Return a dictionary for the row returned mapping column name to it's
value. |
source code
|
|
|
fetchall_dict(self)
Fetch all rows as a list of dictionaries. |
source code
|
|
|
|