Add support for both wasm/ffi version of sqlite3

This commit is contained in:
2024-01-21 20:35:36 +08:00
parent ae43c53299
commit 4d886cb85a
12 changed files with 117 additions and 14 deletions

View File

@@ -79,6 +79,9 @@ export class TaskManager extends EventTarget {
);
}
}
async init() {
await this.db.init();
}
async #add_task(task: Task) {
const r = await this.db.add_task(task);
this.dispatchEvent("new_task", r);