OLD | NEW |
1 | 1 |
2 class IDBObjectStore native "*IDBObjectStore" { | 2 class IDBObjectStore native "*IDBObjectStore" { |
3 | 3 |
4 String keyPath; | 4 String get keyPath() native "return this.keyPath;"; |
5 | 5 |
6 String name; | 6 String get name() native "return this.name;"; |
7 | 7 |
8 IDBTransaction transaction; | 8 IDBTransaction get transaction() native "return this.transaction;"; |
9 | 9 |
10 IDBRequest add(String value, [IDBKey key = null]) native; | 10 IDBRequest add(String value, [IDBKey key = null]) native; |
11 | 11 |
12 IDBRequest clear() native; | 12 IDBRequest clear() native; |
13 | 13 |
14 IDBRequest count([IDBKeyRange range = null]) native; | 14 IDBRequest count([IDBKeyRange range = null]) native; |
15 | 15 |
16 IDBIndex createIndex(String name, String keyPath) native; | 16 IDBIndex createIndex(String name, String keyPath) native; |
17 | 17 |
18 IDBRequest delete(IDBKey key) native; | 18 IDBRequest delete(IDBKey key) native; |
19 | 19 |
20 void deleteIndex(String name) native; | 20 void deleteIndex(String name) native; |
21 | 21 |
22 IDBRequest getObject(IDBKey key) native; | 22 IDBRequest getObject(IDBKey key) native; |
23 | 23 |
24 IDBIndex index(String name) native; | 24 IDBIndex index(String name) native; |
25 | 25 |
26 IDBRequest openCursor([IDBKeyRange range = null, int direction = null]) native
; | 26 IDBRequest openCursor([IDBKeyRange range = null, int direction = null]) native
; |
27 | 27 |
28 IDBRequest put(String value, [IDBKey key = null]) native; | 28 IDBRequest put(String value, [IDBKey key = null]) native; |
29 | 29 |
30 var dartObjectLocalStorage; | 30 var dartObjectLocalStorage; |
31 | 31 |
32 String get typeName() native; | 32 String get typeName() native; |
33 } | 33 } |
OLD | NEW |