IDBDatabase
The IDBDatabase
interface of the IndexedDB API provides a connection to a database; you can use an IDBDatabase
object to open a transaction on your database then create, manipulate, and delete objects (data) in that database.
Properties
The objectStoreNames
read-only property of the IDBDatabase interface is a DOMStringList containing a list of the names of the object stores currently in the connected database.
Functions
The createObjectStore()
method of the IDBDatabase interface creates and returns a new IDBObjectStore.
The deleteObjectStore()
method of the IDBDatabase interface destroys the object store with the given name in the connected database, along with any indexes that reference it.
The transaction
method of the IDBDatabase interface immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store.