mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
add a temporary executemany()
This commit is contained in:
parent
b51e575a9d
commit
874ee80a68
1 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,9 @@ class DBProxy:
|
||||||
|
|
||||||
def executemany(self, sql: str, args: Iterable[Iterable[ValueForDB]]) -> None:
|
def executemany(self, sql: str, args: Iterable[Iterable[ValueForDB]]) -> None:
|
||||||
self.mod = True
|
self.mod = True
|
||||||
raise Exception("fixme")
|
# fixme
|
||||||
|
for row in args:
|
||||||
|
self.execute(sql, *row)
|
||||||
|
|
||||||
def executescript(self, sql: str) -> None:
|
def executescript(self, sql: str) -> None:
|
||||||
self.mod = True
|
self.mod = True
|
||||||
|
|
Loading…
Reference in a new issue