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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 } | 364 } |
365 if (len == 0) throw new StateError("No elements"); | 365 if (len == 0) throw new StateError("No elements"); |
366 throw new StateError("More than one element"); | 366 throw new StateError("More than one element"); |
367 } | 367 } |
368 | 368 |
369 Map elementAt(int index) => this[index]; | 369 Map elementAt(int index) => this[index]; |
370 // -- end List<Map> mixins. | 370 // -- end List<Map> mixins. |
371 | 371 |
372 @DomName('SQLResultSetRowList.item') | 372 @DomName('SQLResultSetRowList.item') |
373 @DocsEditable() | 373 @DocsEditable() |
374 Object item(int index) => wrap_jso(_blink.BlinkSQLResultSetRowList.instance.it
em_Callback_1_(unwrap_jso(this), index)); | 374 Map item(int index) => wrap_jso(_blink.BlinkSQLResultSetRowList.instance.item_
Callback_1_(unwrap_jso(this), index)); |
375 | 375 |
376 } | 376 } |
377 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 377 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
378 // for details. All rights reserved. Use of this source code is governed by a | 378 // for details. All rights reserved. Use of this source code is governed by a |
379 // BSD-style license that can be found in the LICENSE file. | 379 // BSD-style license that can be found in the LICENSE file. |
380 | 380 |
381 // WARNING: Do not edit - generated code. | 381 // WARNING: Do not edit - generated code. |
382 | 382 |
383 | 383 |
384 @DocsEditable() | 384 @DocsEditable() |
(...skipping 15 matching lines...) Expand all Loading... |
400 factory SqlTransaction._internalWrap() { | 400 factory SqlTransaction._internalWrap() { |
401 return new SqlTransaction.internal_(); | 401 return new SqlTransaction.internal_(); |
402 } | 402 } |
403 | 403 |
404 @Deprecated("Internal Use Only") | 404 @Deprecated("Internal Use Only") |
405 SqlTransaction.internal_() { } | 405 SqlTransaction.internal_() { } |
406 | 406 |
407 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | 407 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); |
408 int get hashCode => unwrap_jso(this).hashCode; | 408 int get hashCode => unwrap_jso(this).hashCode; |
409 | 409 |
410 void executeSql(String sqlStatement, [List arguments, SqlStatementCallback cal
lback, SqlStatementErrorCallback errorCallback]) { | 410 @DomName('SQLTransaction.executeSql') |
411 if (errorCallback != null) { | 411 @DocsEditable() |
412 _blink.BlinkSQLTransaction.instance.executeSql_Callback_4_(unwrap_jso(this
), sqlStatement, arguments, unwrap_jso((transaction, resultSet) => callback(wrap
_jso(transaction), wrap_jso(resultSet))), unwrap_jso((transaction, error) => err
orCallback(wrap_jso(transaction), wrap_jso(error)))); | 412 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall
back callback, SqlStatementErrorCallback errorCallback]) => _blink.BlinkSQLTrans
action.instance.executeSql_Callback_4_(unwrap_jso(this), sqlStatement, unwrap_js
o(arguments), unwrap_jso((transaction, resultSet) => callback(wrap_jso(transacti
on), wrap_jso(resultSet))), unwrap_jso((transaction, error) => errorCallback(wra
p_jso(transaction), wrap_jso(error)))); |
413 return; | 413 |
414 } | |
415 if (callback != null) { | |
416 _blink.BlinkSQLTransaction.instance.executeSql_Callback_3_(unwrap_jso(this
), sqlStatement, arguments, unwrap_jso((transaction, resultSet) => callback(wrap
_jso(transaction), wrap_jso(resultSet)))); | |
417 return; | |
418 } | |
419 if (arguments != null) { | |
420 _blink.BlinkSQLTransaction.instance.executeSql_Callback_2_(unwrap_jso(this
), sqlStatement, arguments); | |
421 return; | |
422 } | |
423 _blink.BlinkSQLTransaction.instance.executeSql_Callback_1_(unwrap_jso(this),
sqlStatement); | |
424 return; | |
425 } | |
426 | |
427 } | 414 } |
OLD | NEW |