Revision 2923
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql.py | ||
---|---|---|
148 | 148 |
log_debug_none = lambda msg, level=2: None |
149 | 149 |
|
150 | 150 |
class DbConn: |
151 |
def __init__(self, db_config, autocommit=False, caching=True,
|
|
151 |
def __init__(self, db_config, autocommit=True, caching=True,
|
|
152 | 152 |
log_debug=log_debug_none, debug_temp=False): |
153 | 153 |
''' |
154 | 154 |
@param debug_temp Whether temporary objects should instead be permanent. |
Also available in: Unified diff
DbConn: autocommit mode defaults to True so that all scripts get the benefit of automatic commits