Properties
Connected
Connected: boolean
Methods
Connect
- Connect(): Promise<Result<null | IDBDatabase>>
Returns Promise<Result<null | IDBDatabase>>
Delete
- Delete(deletions): Promise<Result<null>>
Parameters
deletions: Record<string, string[]>
Returns Promise<Result<null>>
Disconnect
- Disconnect(): void
Returns void
Get
- Get<T>(storeName, query): Promise<Result<null | T>>
Parameters
storeName: string
query: number
Returns Promise<Result<null | T>>
- Get<T>(storeName, query): Promise<Result<null | T>>
Parameters
storeName: string
query: string
Returns Promise<Result<null | T>>
- Get<T>(storeName, query): Promise<Result<T[]>>
Parameters
storeName: string
query: ((t) => boolean)
- (t): boolean
Returns boolean
Returns Promise<Result<T[]>>
Insert
- Insert(insertions): Promise<Result<null>>
Parameters
insertions: Record<string, object[]>
Returns Promise<Result<null>>
Update
- Update(updates): Promise<Result<null>>
Parameters
updates: Record<string, object[]>
Returns Promise<Result<null>>
Name of the database to connect to.