- Preparing search index...
- The search index is not available
quick.db
Methods
deleteAllRows
- deleteAllRows(table: string): Promise<number>
-
Returns Promise<number>
deleteRowByKey
- deleteRowByKey(table: string, key: string): Promise<number>
-
Parameters
-
table: string
-
key: string
Returns Promise<number>
getAllRows
- getAllRows(table: string): Promise<{
id: string;
value: any;
}[]>
-
Returns Promise<{
id: string;
value: any;
}[]>
getRowByKey
- getRowByKey<T>(table: string, key: string): Promise<[null | T, boolean]>
-
Parameters
-
table: string
-
key: string
Returns Promise<[null | T, boolean]>
prepare
- prepare(table: string): Promise<void>
-
Returns Promise<void>
setRowByKey
- setRowByKey<T>(table: string, key: string, value: any, update: boolean): Promise<T>
-
Parameters
-
table: string
-
key: string
-
value: any
-
update: boolean
Returns Promise<T>