Adding batch support

This commit is contained in:
Fabian Stamm
2019-12-01 03:34:25 +01:00
parent 2ac9def153
commit 904b986e22
8 changed files with 637 additions and 2130 deletions

View File

@ -49,7 +49,7 @@ V1.post("/db/:database/query", async ctx => {
}
}
ctx.body = await db.run(query, session).catch(err => {
ctx.body = await db.run([query], session).catch(err => {
if (err instanceof QueryError) {
throw new BadRequestError(err.message);
}