Class ReactiveIDBDatabase
Accessors
objectStoreNames
- get objectStoreNames(): DOMStringList
Methods
addEventListener
- addEventListener<K>(type: K, listener: (ev: IDBDatabaseEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void
-
Type parameters
-
K: "versionchange" | "abort" | "close" | "error"
Parameters
-
type: K
-
listener: (ev: IDBDatabaseEventMap[K]) => void
-
- (ev: IDBDatabaseEventMap[K]): void
-
Parameters
-
ev: IDBDatabaseEventMap[K]
Returns void
-
Optional options: boolean | AddEventListenerOptions
Returns void
clear$
- clear$(onBlocked?: (event: Event) => void): Observable<void>
-
Parameters
-
Optional onBlocked: (event: Event) => void
Returns Observable<void>
createObjectStore
-
Parameters
-
name: string
-
Optional options: IDBObjectStoreParameters
deleteObjectStore
- deleteObjectStore(name: string): void
removeEventListener
- removeEventListener<K>(type: K, listener: (ev: IDBDatabaseEventMap[K]) => void, options?: boolean | EventListenerOptions): void
-
Type parameters
-
K: "versionchange" | "abort" | "close" | "error"
Parameters
-
type: K
-
listener: (ev: IDBDatabaseEventMap[K]) => void
-
- (ev: IDBDatabaseEventMap[K]): void
-
Parameters
-
ev: IDBDatabaseEventMap[K]
Returns void
-
Optional options: boolean | EventListenerOptions
Returns void
transaction
- transaction(names: string | string[], mode?: "readonly" | "readwrite" | "versionchange"): ReactiveIDBTransaction
-
Parameters
-
names: string | string[]
-
Optional mode: "readonly" | "readwrite" | "versionchange"
transaction$
- transaction$(names: string | string[], mode?: "readonly" | "readwrite" | "versionchange"): Observable<ReactiveIDBTransaction>
-
Parameters
-
names: string | string[]
-
Optional mode: "readonly" | "readwrite" | "versionchange"