Skip to content

@ralphschuler.webgl shader factory.<internal>.IDBFactory

github-actions edited this page Nov 26, 2023 · 1 revision

Interface: IDBFactory

@ralphschuler/webgl-shader-factory.<internal>.IDBFactory

In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.)

MDN Reference

Table of contents

Methods

Methods

cmp

cmp(first, second): number

Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.

Throws a "DataError" DOMException if either input is not a valid key.

MDN Reference

Parameters

Name Type
first any
second any

Returns

number

Defined in

node_modules/typescript/lib/lib.dom.d.ts:13674


databases

databases(): Promise<IDBDatabaseInfo[]>

MDN Reference

Returns

Promise<IDBDatabaseInfo[]>

Defined in

node_modules/typescript/lib/lib.dom.d.ts:13676


deleteDatabase

deleteDatabase(name): IDBOpenDBRequest

Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null.

MDN Reference

Parameters

Name Type
name string

Returns

IDBOpenDBRequest

Defined in

node_modules/typescript/lib/lib.dom.d.ts:13682


open

open(name, version?): IDBOpenDBRequest

Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.

MDN Reference

Parameters

Name Type
name string
version? number

Returns

IDBOpenDBRequest

Defined in

node_modules/typescript/lib/lib.dom.d.ts:13688

Typescript Libraries

Modules

Namespaces

Clone this wiki locally