Commit df5884a0 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos/collect: set auto-commit

parent cc82e613
......@@ -98,10 +98,12 @@ def string_to_boolean(string):
raise ValueError('%s is neither True nor False.' % string)
def sqlite_connect(dburi, timeout=None):
def sqlite_connect(dburi, timeout=None, isolation_level=None):
connect_kw = {}
if timeout is not None:
connect_kw['timeout'] = timeout
connect_kw['isolation_level'] = isolation_level
conn = sqlite3.connect(dburi, **connect_kw)
conn.text_factory = str # allow 8-bit strings
return conn
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment