mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
add option to dump db args
This commit is contained in:
parent
f16335ee7f
commit
cdffab235c
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,8 @@ class DB(object):
|
||||||
if self.echo:
|
if self.echo:
|
||||||
#print a, ka
|
#print a, ka
|
||||||
print sql, "%0.3fms" % ((time.time() - t)*1000)
|
print sql, "%0.3fms" % ((time.time() - t)*1000)
|
||||||
|
if self.echo == "2":
|
||||||
|
print a, ka
|
||||||
return res
|
return res
|
||||||
|
|
||||||
def executemany(self, sql, l):
|
def executemany(self, sql, l):
|
||||||
|
@ -43,6 +45,8 @@ class DB(object):
|
||||||
self._db.executemany(sql, l)
|
self._db.executemany(sql, l)
|
||||||
if self.echo:
|
if self.echo:
|
||||||
print sql, "%0.3fms" % ((time.time() - t)*1000)
|
print sql, "%0.3fms" % ((time.time() - t)*1000)
|
||||||
|
if self.echo == "2":
|
||||||
|
print l
|
||||||
|
|
||||||
def commit(self):
|
def commit(self):
|
||||||
t = time.time()
|
t = time.time()
|
||||||
|
|
Loading…
Reference in a new issue