2013-07-31 19:48:36 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBCursorDirection
|
|
|
|
*/
|
|
|
|
|
|
|
|
enum IDBCursorDirection {
|
|
|
|
"next",
|
|
|
|
"nextunique",
|
|
|
|
"prev",
|
|
|
|
"prevunique"
|
|
|
|
};
|
2013-08-01 02:28:13 +04:00
|
|
|
|
2014-12-17 09:26:15 +03:00
|
|
|
[Exposed=(Window,Worker)]
|
2013-08-01 02:28:13 +04:00
|
|
|
interface IDBCursor {
|
2013-08-23 09:17:10 +04:00
|
|
|
readonly attribute (IDBObjectStore or IDBIndex) source;
|
2013-08-01 02:28:13 +04:00
|
|
|
|
|
|
|
readonly attribute IDBCursorDirection direction;
|
|
|
|
|
|
|
|
[Throws]
|
|
|
|
readonly attribute any key;
|
|
|
|
|
|
|
|
[Throws]
|
|
|
|
readonly attribute any primaryKey;
|
|
|
|
|
|
|
|
[Throws]
|
|
|
|
IDBRequest update (any value);
|
|
|
|
|
|
|
|
[Throws]
|
|
|
|
void advance ([EnforceRange] unsigned long count);
|
|
|
|
|
|
|
|
[Throws]
|
2014-04-04 07:32:11 +04:00
|
|
|
void continue (optional any key);
|
2013-08-01 02:28:13 +04:00
|
|
|
|
|
|
|
[Throws]
|
|
|
|
IDBRequest delete ();
|
|
|
|
};
|
|
|
|
|
2015-07-29 01:59:55 +03:00
|
|
|
[Exposed=(Window,Worker)]
|
2013-08-01 02:28:13 +04:00
|
|
|
interface IDBCursorWithValue : IDBCursor {
|
|
|
|
[Throws]
|
|
|
|
readonly attribute any value;
|
|
|
|
};
|