Results 1 - 12 of 12

IDBDatabase.close()

The connection is not actually closed until all transactions created using this connection are complete. No new transactions can be created for this connection once this method is called. Methods that create transactions throw an exception if a closing operation is pending.
API close Database IDBDatabase IndexedDB Method Reference Référence Storage storage

IDBDatabase.createObjectStore()

The method takes the name of the store as well as a parameter object that lets you define important optional properties. You can use the property to uniquely identify individual objects in the store. As the property is an identifier, it should be unique to every object, and every object should have that property.
API createObjectStore Database IDBDatabase IndexedDB Method Reference Référence Storage storage

IDBDatabase.name

A DOMString containing the name of the connected database.
API Database IDBDatabase IndexedDB name Property Reference Storage storage

IDBDatabase.objectStoreNames

A DOMStringList containing a list of the names of the object stores currently in the connected database.
API Database IDBDatabase IndexedDB objectStoreNames Property Reference Storage storage

IDBDatabase.onabort

This example shows an IDBOpenDBRequest.onupgradeneeded block that creates a new object store; it also includes onerror and onabort functions to handle non-success cases.
API Database IDBDatabase IndexedDB onabort Property Reference Storage storage

IDBDatabase.onclose

A function which is called when the close event is fired.
API Event Handler IDBDatabase IndexedDB onclose Property Reference

IDBDatabase.onerror

This example shows an IDBOpenDBRequest.onupgradeneeded block that creates a new object store; it also includes onerror and onabort functions to handle non-success cases.
API Database IDBDatabase IndexedDB onerror Property Reference Référence storage Storage

IDBDatabase.onversionchange

This example shows an IDBOpenDBRequest.onupgradeneeded block that creates a new object store; it also includes onerror and onabort functions to handle non-success cases, and an onversionchange function to notify when a database structure change has occurred.
API Database IDBDatabase IndexedDB onversionchange Property Reference Storage storage

IDBDatabase.version

An integer containing the version of the connected database.
API Database IDBDatabase IndexedDB Property Reference Storage storage version