2024-05-19 18:03:00 +12:00
|
|
|
#import <DOM/EventTarget.idl>
|
2024-11-07 20:02:13 +01:00
|
|
|
#import <IndexedDB/IDBCursor.idl>
|
|
|
|
|
#import <IndexedDB/IDBIndex.idl>
|
|
|
|
|
#import <IndexedDB/IDBObjectStore.idl>
|
2024-05-19 18:03:00 +12:00
|
|
|
|
|
|
|
|
// https://w3c.github.io/IndexedDB/#idbrequest
|
|
|
|
|
[Exposed=(Window,Worker)]
|
|
|
|
|
interface IDBRequest : EventTarget {
|
2024-11-04 19:09:21 +01:00
|
|
|
readonly attribute any result;
|
|
|
|
|
readonly attribute DOMException? error;
|
2024-11-07 20:02:13 +01:00
|
|
|
readonly attribute (IDBObjectStore or IDBIndex or IDBCursor)? source;
|
2024-12-01 21:23:15 +04:00
|
|
|
readonly attribute IDBTransaction? transaction;
|
2024-11-07 20:17:58 +01:00
|
|
|
readonly attribute IDBRequestReadyState readyState;
|
2024-05-19 18:03:00 +12:00
|
|
|
|
|
|
|
|
// Event handlers:
|
2024-06-22 11:32:36 +01:00
|
|
|
attribute EventHandler onsuccess;
|
2024-06-22 11:34:09 +01:00
|
|
|
attribute EventHandler onerror;
|
2024-05-19 18:03:00 +12:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
enum IDBRequestReadyState {
|
|
|
|
|
"pending",
|
|
|
|
|
"done"
|
|
|
|
|
};
|