OLD | NEW |
1 /** | 1 /** |
2 * A client-side key-value store with support for indexes. | 2 * A client-side key-value store with support for indexes. |
3 * | 3 * |
4 * Many browsers support IndexedDB—a web standard for | 4 * Many browsers support IndexedDB—a web standard for |
5 * an indexed database. | 5 * an indexed database. |
6 * By storing data on the client in an IndexedDB, | 6 * By storing data on the client in an IndexedDB, |
7 * a web app gets some advantages, such as faster performance and persistence. | 7 * a web app gets some advantages, such as faster performance and persistence. |
8 * To find out which browsers support IndexedDB, | 8 * To find out which browsers support IndexedDB, |
9 * refer to [Can I Use?](http://caniuse.com/#feat=indexeddb) | 9 * refer to [Can I Use?](http://caniuse.com/#feat=indexeddb) |
10 * | 10 * |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 * | 51 * |
52 * | 52 * |
53 * All data in an IndexedDB is stored within an [ObjectStore]. | 53 * All data in an IndexedDB is stored within an [ObjectStore]. |
54 * To manipulate the database use [Transaction]s. | 54 * To manipulate the database use [Transaction]s. |
55 * | 55 * |
56 * ## Other resources | 56 * ## Other resources |
57 * | 57 * |
58 * Other options for client-side data storage include: | 58 * Other options for client-side data storage include: |
59 * | 59 * |
60 * * [Window.localStorage]—a | 60 * * [Window.localStorage]—a |
61 * basic mechanism in which data is stored as a [Map]. | 61 * basic mechanism that stores data as a [Map], |
| 62 * and where both the keys and the values are strings. |
62 * | 63 * |
63 * * [dart:web_sql]—a database that can be queried with SQL. | 64 * * [dart:web_sql]—a database that can be queried with SQL. |
64 * | 65 * |
65 * * The [Lawndart](http://pub.dartlang.org/packages/lawndart) package, | |
66 * which helps you deal with the wide array of client-side storage options. | |
67 * | |
68 * For a tutorial about using the indexed_db library with Dart, | 66 * For a tutorial about using the indexed_db library with Dart, |
69 * check out | 67 * check out |
70 * [Use IndexedDB](http://www.dartlang.org/docs/tutorials/indexeddb/). | 68 * [Use IndexedDB](http://www.dartlang.org/docs/tutorials/indexeddb/). |
71 * | 69 * |
72 * [IndexedDB reference](http://docs.webplatform.org/wiki/apis/indexeddb) | 70 * [IndexedDB reference](http://docs.webplatform.org/wiki/apis/indexeddb) |
73 * provides wiki-style docs about indexedDB | 71 * provides wiki-style docs about indexedDB |
74 */ | 72 */ |
75 library dart.dom.indexed_db; | 73 library dart.dom.indexed_db; |
76 | 74 |
77 import 'dart:async'; | 75 import 'dart:async'; |
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
1324 // for details. All rights reserved. Use of this source code is governed by a | 1322 // for details. All rights reserved. Use of this source code is governed by a |
1325 // BSD-style license that can be found in the LICENSE file. | 1323 // BSD-style license that can be found in the LICENSE file. |
1326 | 1324 |
1327 | 1325 |
1328 @DocsEditable() | 1326 @DocsEditable() |
1329 @DomName('IDBAny') | 1327 @DomName('IDBAny') |
1330 @deprecated // nonstandard | 1328 @deprecated // nonstandard |
1331 abstract class _IDBAny extends Interceptor native "IDBAny" { | 1329 abstract class _IDBAny extends Interceptor native "IDBAny" { |
1332 } | 1330 } |
OLD | NEW |