2024-11-07 18:49:31 +01:00
|
|
|
#import <IndexedDB/IDBRequest.idl>
|
|
|
|
|
|
|
|
|
|
[Exposed=(Window,Worker)]
|
|
|
|
|
interface IDBCursor {
|
2025-05-06 11:36:11 +02:00
|
|
|
[ImplementedAs=source_handle] readonly attribute (IDBObjectStore or IDBIndex) source;
|
2025-04-11 11:21:05 +02:00
|
|
|
readonly attribute IDBCursorDirection direction;
|
|
|
|
|
readonly attribute any key;
|
2025-05-08 09:42:58 +02:00
|
|
|
readonly attribute any primaryKey;
|
2025-04-11 11:21:05 +02:00
|
|
|
[SameObject] readonly attribute IDBRequest request;
|
2025-05-13 09:54:00 +02:00
|
|
|
undefined advance([EnforceRange] unsigned long count);
|
2025-04-29 17:48:27 +02:00
|
|
|
undefined continue(optional any key);
|
2025-05-13 09:54:13 +02:00
|
|
|
undefined continuePrimaryKey(any key, any primaryKey);
|
2025-05-13 10:09:48 +02:00
|
|
|
[NewObject] IDBRequest update(any value);
|
2025-05-13 10:23:52 +02:00
|
|
|
[NewObject] IDBRequest delete();
|
2024-11-07 18:49:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
enum IDBCursorDirection {
|
|
|
|
|
"next",
|
|
|
|
|
"nextunique",
|
|
|
|
|
"prev",
|
|
|
|
|
"prevunique"
|
|
|
|
|
};
|