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/#cursor-interface
10 enum IDBCursorDirection {
17 [Exposed=(Window,Worker)]
19 readonly attribute (IDBObjectStore or IDBIndex) source;
21 [BinaryName="getDirection"]
22 readonly attribute IDBCursorDirection direction;
24 [Pure, Throws] readonly attribute any key;
25 [Pure, Throws] readonly attribute any primaryKey;
26 [SameObject] readonly attribute IDBRequest request;
29 undefined advance ([EnforceRange] unsigned long count);
32 undefined continue (optional any key);
35 undefined continuePrimaryKey(any key, any primaryKey);
37 [NewObject, Throws] IDBRequest update(any value);
38 [NewObject, Throws] IDBRequest delete();
41 [Exposed=(Window,Worker)]
42 interface IDBCursorWithValue : IDBCursor {
43 [Pure, Throws] readonly attribute any value;