IndexedDB
Docs HomeProduct SiteSupport
  • WireBootstrap IndexedDB Connector
  • Installation
  • Service Provider
  • Data Source
  • Collection
Powered by GitBook
On this page
  • Provider Key
  • Configuration
  • Stores
  • Allow

Service Provider

Use the IndexedDB connector service provider to use IndexedDB as a data source.

Provider Key

Use the indexed-db provider key to use the service provider for this data connector with a data source.

const service = new wire.data.DataSource("indexed-db", {
    ...    
});

Configuration

Name
Description

stores

Stores

Name
Description

name

The name of the store

data

The array of data objects used to initialize the store.

The following example creates a new data source using the IndexedDB Connector. When initialized, the service provider will create new a store called My Store in IndexedDB if it does not already exist adding an array of fruits data.

const fruits = [
    { name: "grapes", color: "green"},
    { name: "bananas", color: "yellow"},
    { name: "apples", color: "red"},
];
const source = new wire.data.DataSource("indexed-db", {
  Provider: {
     stores: [
          { name: "My Store", data: fruits }
      ]}
});

Allow

Name
Supports

delete

false

discover

false

storedProcedure

false

tableQuery

true

test

false

write

false

PreviousInstallationNextData Source

Last updated 3 years ago

Optional. The array of IndexedDB to create on initialization of the service provider.

Service providers are able to tell consumers about the functionality they support through an property. Below is a list of the functionality that the service provider supports.

allow
stores