This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

IDBDatabase

Summary

Represents a database connection for the purpose of conducting a transaction.

Properties

name
Name of the connected database.
objectStoreNames
Returns a list of names of the object stores currently in the connected database.
version
Returns the version of the database when this IDBDatabaseSync instance was created.

Methods

close
This method synchronously performs the steps for closing a database connection and returns once the database has been closed.
createObjectStore
The createObjectStore method enables you to create object stores inside an indexedDB database. The creation of an object store is only possible inside a “versionchange” transaction.
deleteObjectStore
Destroys an object store with the given name as well as all indexes that are referencing that object store.
setVersion
Deletion candidate. Not in spec: http://www.w3.org/TR/IndexedDB/
transaction
Execute the steps for creating a transaction in a sychronous fashion.

Events

No events.

Related specifications

W3C IndexedDB Specification
W3C Proposed Recommendation

Attributions