mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
9e094b7c9d
commit
2e4ba71b53
4 changed files with 18 additions and 43 deletions
|
|
@ -95,7 +95,10 @@ class Database:
|
|||
)
|
||||
|
||||
async def execute_write(self, sql, params=None, executescript=False, block=False):
|
||||
assert not (executescript and params), "Cannot use params with executescript=True"
|
||||
assert not (
|
||||
executescript and params
|
||||
), "Cannot use params with executescript=True"
|
||||
|
||||
def _inner(conn):
|
||||
with conn:
|
||||
if executescript:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue