API ReferenceGlobalsIndexedDbAdapter

# Class: IndexedDbAdapter

# Hierarchy

  • IndexedDbAdapter

# Index

# Methods

# Methods

# Static deleteRecordFromObjectStore

deleteRecordFromObjectStore(dbConnection: IDBDatabase, storeName: string, recordId: string): Promise‹unknown›

Defined in packages/configurator-core/src/utils/indexeddb-adapter.ts:49

Parameters:

Name Type
dbConnection IDBDatabase
storeName string
recordId string

Returns: Promise‹unknown›


# Static getObjectStore

getObjectStore(dbConnection: IDBDatabase, storeName: string, transactionMode: IDBTransactionMode): IDBObjectStore

Defined in packages/configurator-core/src/utils/indexeddb-adapter.ts:25

Parameters:

Name Type
dbConnection IDBDatabase
storeName string
transactionMode IDBTransactionMode

Returns: IDBObjectStore


# Static getRecordFromObjectStore

getRecordFromObjectStore(dbConnection: IDBDatabase, storeName: string, recordId: string): Promise‹WasmDbEntry

Defined in packages/configurator-core/src/utils/indexeddb-adapter.ts:29

Parameters:

Name Type
dbConnection IDBDatabase
storeName string
recordId string

Returns: Promise‹WasmDbEntry


# Static openDb

openDb(dbName: string, dbVersion: number, upgradeDbCallback: function): Promise‹IDBDatabase›

Defined in packages/configurator-core/src/utils/indexeddb-adapter.ts:7

Parameters:

dbName: string

dbVersion: number

upgradeDbCallback: function

▸ (this: IDBOpenDBRequest, ev: IDBVersionChangeEvent): any

Parameters:

Name Type
this IDBOpenDBRequest
ev IDBVersionChangeEvent

Returns: Promise‹IDBDatabase›


# Static saveRecordToObjectStore

saveRecordToObjectStore(dbConnection: IDBDatabase, storeName: string, objRecord: WasmDbEntry): Promise‹unknown›

Defined in packages/configurator-core/src/utils/indexeddb-adapter.ts:64

Parameters:

Name Type
dbConnection IDBDatabase
storeName string
objRecord WasmDbEntry

Returns: Promise‹unknown›