|
@ -121,11 +121,8 @@ class Database { |
|
|
return statement !== ""; |
|
|
return statement !== ""; |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
// Use better-sqlite3 to run, prevent "This statement does not return data. Use run() instead"
|
|
|
|
|
|
const db = await this.getBetterSQLite3Database(); |
|
|
|
|
|
|
|
|
|
|
|
for (let statement of statements) { |
|
|
for (let statement of statements) { |
|
|
db.prepare(statement).run(); |
|
|
await R.exec(statement); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|