mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Update
This commit is contained in:
5
db.ts
5
db.ts
@@ -524,6 +524,11 @@ export class EhDb {
|
||||
);
|
||||
return s.length ? s[0] : undefined;
|
||||
}
|
||||
get_tasks() {
|
||||
return this.transaction(() =>
|
||||
this.db.queryEntries<Task>("SELECT * FROM task;")
|
||||
);
|
||||
}
|
||||
get_tasks_by_pid(pid: number) {
|
||||
return this.transaction(() =>
|
||||
this.db.queryEntries<Task>("SELECT * FROM task WHERE pid = ?;", [
|
||||
|
||||
Reference in New Issue
Block a user