File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -132,12 +132,10 @@ this.dbService.getByKey('people', 1).then(
132
132
);
133
133
```
134
134
135
- #### getAll(storeName, keyRange, indexDetails )
135
+ #### getAll(storeName)
136
136
137
137
Returns an array of all the items in the given objectStore.
138
138
The first parameter is the store name to query.
139
- The second parameter is an optional IDBKeyRange object.
140
- The third parameter is an index details which must include index name and an optional order parameter.
141
139
** getAll** returns a promise that is resolved when we have the array of items or rejected if an error occurred.
142
140
143
141
Usage example:
@@ -298,17 +296,16 @@ The second parameter is an index details which must include index name and an op
298
296
The third parameter is an ` IDBKeyRange ` object.
299
297
** getAllByIndex** returns a promise that is resolved when we have the array of items or rejected if an error occurred.
300
298
301
-
302
- Usage example:
299
+ Usage example:
303
300
304
301
``` js
305
302
this .dbService .getAllByIndex (' people' , ' name' , IDBKeyRange .only (' john' )).then (
306
- ( array ) => {
307
- // Do something with the array
308
- },
309
- error => {
303
+ array => {
304
+ // Do something with the array
305
+ },
306
+ error => {
310
307
console .log (error);
311
- }
308
+ }
312
309
);
313
310
```
314
311
You can’t perform that action at this time.
0 commit comments