public interface IDBFactory
IDBFactory interface of the IndexedDB API lets applications asynchronously access the indexed databases. The object that implements the interface is
window.indexedDB. You open—that is, create and access—and delete a database with the object and not directly with
This interface still has vendor prefixes, that is to say, you have to make calls with
mozIndexedDB.open() for Firefox and
webkitIndexedDB.open() for Chrome.
|Modifier and Type||Method and Description|
Compares two values as keys to determine equality and ordering for IndexedDB operations, such as storing and iterating.
Request deleting a database.
Warning: The description documents the old specification.
This throws an exception if either of the values is not a valid key.
|-1||1st key < 2nd|
|0||1st key = 2nd|
|1||1st key > 2nd|
IDBVersionChangeRequest deleteDatabase(String name)
Request deleting a database. The method returns an IDBRequest object immediately, and performs the deletion operation asynchronously.
The deletion operation (performed in a different thread) consists of the following steps:
blockedevent at the request object returned by the
deleteDatabasemethod, using IDBVersionChangeEvent with
Tip: If the browser you are using hasn't implemented this yet, you can delete the object stores one by one, thus effectively removing the database.
IDBRequest open(String name)
Request opening a connection to a database. The method returns an IDBRequest object immediately, and performs the opening operation asynchronously.
The opening operation—which is performed in a separate thread—consists of the following steps:
VERSION_CHANGEtransactions have finished.
Copyright © 2018. All rights reserved.