1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * https://w3c.github.io/IndexedDB/#idbtransaction
8 * https://w3c.github.io/IndexedDB/#enumdef-idbtransactionmode
11 enum IDBTransactionMode {
14 // The "readwriteflush" mode is only available when the
15 // |dom.indexedDB.experimental| pref returns
16 // true. This mode is not yet part of the standard.
22 [Exposed=(Window,Worker)]
23 interface IDBTransaction : EventTarget {
25 readonly attribute IDBTransactionMode mode;
26 [SameObject] readonly attribute IDBDatabase db;
28 readonly attribute DOMException? error;
31 IDBObjectStore objectStore (DOMString name);
39 attribute EventHandler onabort;
40 attribute EventHandler oncomplete;
41 attribute EventHandler onerror;
44 // This seems to be custom
45 partial interface IDBTransaction {
46 readonly attribute DOMStringList objectStoreNames;