Revision 2915
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
149 | 149 |
|
150 | 150 |
class DbConn: |
151 | 151 |
def __init__(self, db_config, autocommit=False, caching=True, |
152 |
log_debug=log_debug_none): |
|
152 |
log_debug=log_debug_none, debug_temp=False): |
|
153 |
''' |
|
154 |
@param debug_temp Whether temporary objects should instead be permanent. |
|
155 |
This assists in debugging the internal objects used by the program. |
|
156 |
''' |
|
153 | 157 |
self.db_config = db_config |
154 | 158 |
self.autocommit = autocommit |
155 | 159 |
self.caching = caching |
156 | 160 |
self.log_debug = log_debug |
157 | 161 |
self.debug = log_debug != log_debug_none |
162 |
self.debug_temp = debug_temp |
|
158 | 163 |
|
159 | 164 |
self.__db = None |
160 | 165 |
self.query_results = {} |
Also available in: Unified diff
sql.py: DbConn: Added config option debug_temp