@@ -108,10 +108,11 @@ interface IDBObjectStore {
108
108
[NewObject] IDBRequest clear();
109
109
[NewObject] IDBRequest get(any query);
110
110
[NewObject] IDBRequest getKey(any query);
111
- [NewObject] IDBRequest getAll(optional any query ,
111
+ [NewObject] IDBRequest getAll(optional any queryOrOptions ,
112
112
optional [EnforceRange] unsigned long count);
113
- [NewObject] IDBRequest getAllKeys(optional any query ,
113
+ [NewObject] IDBRequest getAllKeys(optional any queryOrOptions ,
114
114
optional [EnforceRange] unsigned long count);
115
+ [NewObject] IDBRequest getAllRecords(optional IDBGetAllOptions options = {});
115
116
[NewObject] IDBRequest count(optional any query);
116
117
117
118
[NewObject] IDBRequest openCursor(optional any query,
@@ -132,6 +133,12 @@ dictionary IDBIndexParameters {
132
133
boolean multiEntry = false;
133
134
};
134
135
136
+ dictionary IDBGetAllOptions {
137
+ any query = null;
138
+ [EnforceRange] unsigned long count;
139
+ IDBCursorDirection direction = "next";
140
+ };
141
+
135
142
[Exposed=(Window,Worker)]
136
143
interface IDBIndex {
137
144
attribute DOMString name;
@@ -142,10 +149,11 @@ interface IDBIndex {
142
149
143
150
[NewObject] IDBRequest get(any query);
144
151
[NewObject] IDBRequest getKey(any query);
145
- [NewObject] IDBRequest getAll(optional any query ,
152
+ [NewObject] IDBRequest getAll(optional any queryOrOptions ,
146
153
optional [EnforceRange] unsigned long count);
147
- [NewObject] IDBRequest getAllKeys(optional any query ,
154
+ [NewObject] IDBRequest getAllKeys(optional any queryOrOptions ,
148
155
optional [EnforceRange] unsigned long count);
156
+ [NewObject] IDBRequest getAllRecords(optional IDBGetAllOptions options = {});
149
157
[NewObject] IDBRequest count(optional any query);
150
158
151
159
[NewObject] IDBRequest openCursor(optional any query,
@@ -173,6 +181,13 @@ interface IDBKeyRange {
173
181
boolean includes(any key);
174
182
};
175
183
184
+ [Exposed=(Window,Worker)]
185
+ interface IDBRecord {
186
+ readonly attribute any key;
187
+ readonly attribute any primaryKey;
188
+ readonly attribute any value;
189
+ };
190
+
176
191
[Exposed=(Window,Worker)]
177
192
interface IDBCursor {
178
193
readonly attribute (IDBObjectStore or IDBIndex) source;
0 commit comments