Interface IDBDatabase

Hierarchy

Properties

name: string

Returns the name of the database.

MDN Reference

objectStoreNames: DOMStringList

Returns a list of the names of object stores in the database.

MDN Reference

onabort: ((this, ev) => any)

Type declaration

onclose: ((this, ev) => any)

Type declaration

onerror: ((this, ev) => any)

Type declaration

onversionchange: ((this, ev) => any)

Type declaration

version: number

Returns the version of the database.

MDN Reference

Methods

  • Closes the connection once all running transactions have finished.

    MDN Reference

    Returns void

  • Creates a new object store with the given name and options and returns a new IDBObjectStore.

    Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.

    MDN Reference

    Parameters

    Returns IDBObjectStore

  • Deletes the object store with the given name.

    Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.

    MDN Reference

    Parameters

    • name: string

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    MDN Reference

    Parameters

    Returns boolean