Notice:
The WebPlatform project has been discontinued when the Stewards partnership agreement ended in September 2015. This site has been frozen, and the assets we have created will remain.

IDBDatabase

< apis‎ | indexeddb
Jump to: navigation, search

IDBDatabase

This article is Ready to Use.

W3C Proposed Recommendation

Summary

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


Properties

API Name Summary
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

API Name Summary
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.
transaction Execute the steps for creating a transaction in a sychronous fashion.


Events

No events.




Related specifications

Specification Status Related Changes
W3C IndexedDB Specification W3C Proposed Recommendation

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]