OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 interface IDBObjectStore { | 7 interface IDBObjectStore { |
8 | 8 |
9 final String keyPath; | 9 final String keyPath; |
10 | 10 |
11 final String name; | 11 final String name; |
12 | 12 |
13 final IDBTransaction transaction; | 13 final IDBTransaction transaction; |
14 | 14 |
15 IDBRequest add(Dynamic value, [IDBKey key]); | 15 IDBRequest add(Dynamic value, [IDBKey key]); |
16 | 16 |
17 IDBRequest clear(); | 17 IDBRequest clear(); |
18 | 18 |
19 IDBRequest count([IDBKeyRange range]); | 19 IDBRequest count([IDBKeyRange range]); |
20 | 20 |
21 IDBIndex createIndex(String name, String keyPath); | 21 IDBIndex createIndex(String name, String keyPath); |
22 | 22 |
23 IDBRequest delete(IDBKey key); | 23 IDBRequest delete(var key_OR_keyRange); |
24 | 24 |
25 void deleteIndex(String name); | 25 void deleteIndex(String name); |
26 | 26 |
27 IDBRequest getObject(IDBKey key); | 27 IDBRequest getObject(IDBKey key); |
28 | 28 |
29 IDBIndex index(String name); | 29 IDBIndex index(String name); |
30 | 30 |
31 IDBRequest openCursor([IDBKeyRange range, int direction]); | 31 IDBRequest openCursor([IDBKeyRange range, int direction]); |
32 | 32 |
33 IDBRequest put(Dynamic value, [IDBKey key]); | 33 IDBRequest put(Dynamic value, [IDBKey key]); |
34 } | 34 } |
OLD | NEW |