(db: SQLiteDatabase, text: string)
| 193 | //#region Database Operations |
| 194 | |
| 195 | async function addItemAsync(db: SQLiteDatabase, text: string): Promise<void> { |
| 196 | if (text !== '') { |
| 197 | await db.runAsync( |
| 198 | 'INSERT INTO items (done, value) VALUES (?, ?);', |
| 199 | false, |
| 200 | text |
| 201 | ); |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | async function updateItemAsDoneAsync( |
| 206 | db: SQLiteDatabase, |