Skip to content

Latest commit

 

History

History
124 lines (70 loc) · 2.83 KB

idbdatabasehelper.md

File metadata and controls

124 lines (70 loc) · 2.83 KB

Kloak Bridge / Exports / IDBDatabaseHelper

Class: IDBDatabaseHelper

Table of contents

Constructors

Properties

Methods

Constructors

constructor

+ new IDBDatabaseHelper(databaseName?: string, version?: number): IDBDatabaseHelper

Parameters:

Name Type
databaseName? string
version? number

Returns: IDBDatabaseHelper

Defined in: IDBDatabaseHelper.ts:8

Properties

databaseName

Private databaseName: string= 'kloak'

Defined in: IDBDatabaseHelper.ts:7


version

Private version: number= 1

Defined in: IDBDatabaseHelper.ts:8

Methods

clearObjectStore

clearObjectStore(): Promise<boolean>

Returns: Promise<boolean>

Defined in: IDBDatabaseHelper.ts:40


delete

delete(uuid: string): Promise<string>

Parameters:

Name Type
uuid string

Returns: Promise<string>

Defined in: IDBDatabaseHelper.ts:87


getObjectStore

getObjectStore(): Promise<[tx: IDBTransaction, objectStore: IDBObjectStore]>

Returns: Promise<[tx: IDBTransaction, objectStore: IDBObjectStore]>

Defined in: IDBDatabaseHelper.ts:15


retrieve

retrieve(uuid: string): Promise<any>

Parameters:

Name Type
uuid string

Returns: Promise<any>

Defined in: IDBDatabaseHelper.ts:67


save

save(uuid: string, data: any): Promise<string>

Parameters:

Name Type
uuid string
data any

Returns: Promise<string>

Defined in: IDBDatabaseHelper.ts:54