(command: string)
| 117 | } |
| 118 | |
| 119 | async addCount(command: string) { |
| 120 | this.connection.prepare("UPDATE counts SET count = count + 1 WHERE command = ?").run(command); |
| 121 | } |
| 122 | |
| 123 | async getCounts(all?: boolean) { |
| 124 | const counts = this.connection.prepare("SELECT * FROM counts").all() as unknown as Count[]; |
no test coverage detected