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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 if (end == null) end = length; | 453 if (end == null) end = length; |
454 return Lists.getRange(this, start, end, <Map>[]); | 454 return Lists.getRange(this, start, end, <Map>[]); |
455 } | 455 } |
456 | 456 |
457 List<Map> getRange(int start, int rangeLength) => | 457 List<Map> getRange(int start, int rangeLength) => |
458 sublist(start, start + rangeLength); | 458 sublist(start, start + rangeLength); |
459 | 459 |
460 Map<int, Map> asMap() => | 460 Map<int, Map> asMap() => |
461 IterableMixinWorkaround.asMapList(this); | 461 IterableMixinWorkaround.asMapList(this); |
462 | 462 |
| 463 String toString() { |
| 464 StringBuffer buffer = new StringBuffer('['); |
| 465 buffer.writeAll(this, ', '); |
| 466 buffer.write(']'); |
| 467 return buffer.toString(); |
| 468 } |
| 469 |
463 // -- end List<Map> mixins. | 470 // -- end List<Map> mixins. |
464 | 471 |
465 @DomName('SQLResultSetRowList.item') | 472 @DomName('SQLResultSetRowList.item') |
466 @DocsEditable | 473 @DocsEditable |
467 Map item(int index) native "SQLResultSetRowList_item_Callback"; | 474 Map item(int index) native "SQLResultSetRowList_item_Callback"; |
468 | 475 |
469 } | 476 } |
470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
471 // for details. All rights reserved. Use of this source code is governed by a | 478 // for details. All rights reserved. Use of this source code is governed by a |
472 // BSD-style license that can be found in the LICENSE file. | 479 // BSD-style license that can be found in the LICENSE file. |
(...skipping 27 matching lines...) Expand all Loading... |
500 @SupportedBrowser(SupportedBrowser.SAFARI) | 507 @SupportedBrowser(SupportedBrowser.SAFARI) |
501 @Experimental | 508 @Experimental |
502 class SqlTransactionSync extends NativeFieldWrapperClass1 { | 509 class SqlTransactionSync extends NativeFieldWrapperClass1 { |
503 SqlTransactionSync.internal(); | 510 SqlTransactionSync.internal(); |
504 | 511 |
505 @DomName('SQLTransactionSync.executeSql') | 512 @DomName('SQLTransactionSync.executeSql') |
506 @DocsEditable | 513 @DocsEditable |
507 SqlResultSet executeSql(String sqlStatement, List arguments) native "SQLTransa
ctionSync_executeSql_Callback"; | 514 SqlResultSet executeSql(String sqlStatement, List arguments) native "SQLTransa
ctionSync_executeSql_Callback"; |
508 | 515 |
509 } | 516 } |
OLD | NEW |