OLD | NEW |
1 | 1 |
2 class _IDBObjectStoreJs extends _DOMTypeJs implements IDBObjectStore native "*ID
BObjectStore" { | 2 class _IDBObjectStoreJs extends _DOMTypeJs implements IDBObjectStore native "*ID
BObjectStore" { |
3 | 3 |
4 final List<String> indexNames; | 4 final List<String> indexNames; |
5 | 5 |
6 final String keyPath; | 6 final String keyPath; |
7 | 7 |
8 final String name; | 8 final String name; |
9 | 9 |
10 final _IDBTransactionJs transaction; | 10 final _IDBTransactionJs transaction; |
11 | 11 |
12 _IDBRequestJs add(Dynamic value, [_IDBKeyJs key = null]) native; | 12 _IDBRequestJs add(Dynamic value, [_IDBKeyJs key = null]) native; |
13 | 13 |
14 _IDBRequestJs clear() native; | 14 _IDBRequestJs clear() native; |
15 | 15 |
16 _IDBRequestJs count([_IDBKeyRangeJs range = null]) native; | 16 _IDBRequestJs count([var key_OR_range = null]) native; |
17 | 17 |
18 _IDBIndexJs createIndex(String name, String keyPath) native; | 18 _IDBIndexJs createIndex(String name, String keyPath) native; |
19 | 19 |
20 _IDBRequestJs delete(var key_OR_keyRange) native; | 20 _IDBRequestJs delete(var key_OR_keyRange) native; |
21 | 21 |
22 void deleteIndex(String name) native; | 22 void deleteIndex(String name) native; |
23 | 23 |
24 _IDBRequestJs getObject(_IDBKeyJs key) native '''return this.get(key);'''; | 24 _IDBRequestJs getObject(_IDBKeyJs key) native '''return this.get(key);'''; |
25 | 25 |
26 _IDBIndexJs index(String name) native; | 26 _IDBIndexJs index(String name) native; |
27 | 27 |
28 _IDBRequestJs openCursor([_IDBKeyRangeJs range = null, int direction = null])
native; | 28 _IDBRequestJs openCursor([_IDBKeyRangeJs range = null, int direction = null])
native; |
29 | 29 |
30 _IDBRequestJs put(Dynamic value, [_IDBKeyJs key = null]) native; | 30 _IDBRequestJs put(Dynamic value, [_IDBKeyJs key = null]) native; |
31 } | 31 } |
OLD | NEW |