setVersion method

[While supported in pre-release versions, this method is obsolete and the upgradeneeded event should be used instead. Applications using this property should be updated accordingly.]

Obsolete. No longer supported.

Syntax

var retVal = IDBDatabase.setVersion(version);

Parameters

version [in]

Type: DOMString

The new version identifier.

Return value

Type: IDBVersionChangeRequest

The transaction associated with the VERSION_CHANGE request.

Standards information

Remarks

The setVersion method was specified by an early draft of the Indexed Database specification. The method was removed from later drafts of the specification and is no longer supported.

To create object stores, indexes, and other IndexedDB objects, use the version parameter of the open method of the indexedDB property to generate an onupgradeneeded event.

See also

IDBDatabase
onupgradeneeded
open

 

 

Show:
© 2014 Microsoft