OLD | NEW |
1 /** | 1 /** |
2 * An API for storing data in the browser that can be queried with SQL. | 2 * An API for storing data in the browser that can be queried with SQL. |
3 * | 3 * |
4 * **Caution:** this specification is no longer actively maintained by the Web | 4 * **Caution:** this specification is no longer actively maintained by the Web |
5 * Applications Working Group and may be removed at any time. | 5 * Applications Working Group and may be removed at any time. |
6 * See [the W3C Web SQL Database specification](http://www.w3.org/TR/webdatabase
/) | 6 * See [the W3C Web SQL Database specification](http://www.w3.org/TR/webdatabase
/) |
7 * for more information. | 7 * for more information. |
8 * | 8 * |
9 * The [dart:indexed_db] APIs is a recommended alternatives. | 9 * The [dart:indexed_db] APIs is a recommended alternatives. |
10 */ | 10 */ |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 Iterable<Map> where(bool f(Map element)) => | 280 Iterable<Map> where(bool f(Map element)) => |
281 IterableMixinWorkaround.where(this, f); | 281 IterableMixinWorkaround.where(this, f); |
282 | 282 |
283 Iterable expand(Iterable f(Map element)) => | 283 Iterable expand(Iterable f(Map element)) => |
284 IterableMixinWorkaround.expand(this, f); | 284 IterableMixinWorkaround.expand(this, f); |
285 | 285 |
286 bool every(bool f(Map element)) => IterableMixinWorkaround.every(this, f); | 286 bool every(bool f(Map element)) => IterableMixinWorkaround.every(this, f); |
287 | 287 |
288 bool any(bool f(Map element)) => IterableMixinWorkaround.any(this, f); | 288 bool any(bool f(Map element)) => IterableMixinWorkaround.any(this, f); |
289 | 289 |
290 List<Map> toList({ bool growable: false }) => | 290 List<Map> toList({ bool growable: true }) => |
291 new List<Map>.from(this, growable: growable); | 291 new List<Map>.from(this, growable: growable); |
292 | 292 |
293 Set<Map> toSet() => new Set<Map>.from(this); | 293 Set<Map> toSet() => new Set<Map>.from(this); |
294 | 294 |
295 bool get isEmpty => this.length == 0; | 295 bool get isEmpty => this.length == 0; |
296 | 296 |
297 Iterable<Map> take(int n) => IterableMixinWorkaround.takeList(this, n); | 297 Iterable<Map> take(int n) => IterableMixinWorkaround.takeList(this, n); |
298 | 298 |
299 Iterable<Map> takeWhile(bool test(Map value)) { | 299 Iterable<Map> takeWhile(bool test(Map value)) { |
300 return IterableMixinWorkaround.takeWhile(this, test); | 300 return IterableMixinWorkaround.takeWhile(this, test); |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 @DomName('SQLTransactionSync') | 465 @DomName('SQLTransactionSync') |
466 @SupportedBrowser(SupportedBrowser.CHROME) | 466 @SupportedBrowser(SupportedBrowser.CHROME) |
467 @SupportedBrowser(SupportedBrowser.SAFARI) | 467 @SupportedBrowser(SupportedBrowser.SAFARI) |
468 @Experimental | 468 @Experimental |
469 class SqlTransactionSync native "*SQLTransactionSync" { | 469 class SqlTransactionSync native "*SQLTransactionSync" { |
470 | 470 |
471 @DomName('SQLTransactionSync.executeSql') | 471 @DomName('SQLTransactionSync.executeSql') |
472 @DocsEditable | 472 @DocsEditable |
473 SqlResultSet executeSql(String sqlStatement, List arguments) native; | 473 SqlResultSet executeSql(String sqlStatement, List arguments) native; |
474 } | 474 } |
OLD | NEW |