| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 * | 108 * |
| 109 * See also: | 109 * See also: |
| 110 * | 110 * |
| 111 * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom-database-c
hangeversion) from W3C. | 111 * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom-database-c
hangeversion) from W3C. |
| 112 */ | 112 */ |
| 113 @DomName('Database.changeVersion') | 113 @DomName('Database.changeVersion') |
| 114 @DocsEditable() | 114 @DocsEditable() |
| 115 void changeVersion(String oldVersion, String newVersion, | 115 void changeVersion(String oldVersion, String newVersion, |
| 116 [SqlTransactionCallback callback, | 116 [SqlTransactionCallback callback, |
| 117 SqlTransactionErrorCallback errorCallback, | 117 SqlTransactionErrorCallback errorCallback, |
| 118 VoidCallback successCallback]) native ; | 118 VoidCallback successCallback]) native; |
| 119 | 119 |
| 120 @DomName('Database.readTransaction') | 120 @DomName('Database.readTransaction') |
| 121 @DocsEditable() | 121 @DocsEditable() |
| 122 void readTransaction(SqlTransactionCallback callback, | 122 void readTransaction(SqlTransactionCallback callback, |
| 123 [SqlTransactionErrorCallback errorCallback, | 123 [SqlTransactionErrorCallback errorCallback, |
| 124 VoidCallback successCallback]) native ; | 124 VoidCallback successCallback]) native; |
| 125 | 125 |
| 126 @DomName('Database.transaction') | 126 @DomName('Database.transaction') |
| 127 @DocsEditable() | 127 @DocsEditable() |
| 128 void transaction(SqlTransactionCallback callback, | 128 void transaction(SqlTransactionCallback callback, |
| 129 [SqlTransactionErrorCallback errorCallback, | 129 [SqlTransactionErrorCallback errorCallback, |
| 130 VoidCallback successCallback]) native ; | 130 VoidCallback successCallback]) native; |
| 131 } | 131 } |
| 132 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 132 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 133 // for details. All rights reserved. Use of this source code is governed by a | 133 // for details. All rights reserved. Use of this source code is governed by a |
| 134 // BSD-style license that can be found in the LICENSE file. | 134 // BSD-style license that can be found in the LICENSE file. |
| 135 | 135 |
| 136 @DocsEditable() | 136 @DocsEditable() |
| 137 @DomName('SQLError') | 137 @DomName('SQLError') |
| 138 // http://www.w3.org/TR/webdatabase/#sqlerror | 138 // http://www.w3.org/TR/webdatabase/#sqlerror |
| 139 @Experimental() // deprecated | 139 @Experimental() // deprecated |
| 140 @Native("SQLError") | 140 @Native("SQLError") |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 277 |
| 278 @DomName('SQLResultSetRowList.item') | 278 @DomName('SQLResultSetRowList.item') |
| 279 @DocsEditable() | 279 @DocsEditable() |
| 280 Map item(int index) { | 280 Map item(int index) { |
| 281 return convertNativeToDart_Dictionary(_item_1(index)); | 281 return convertNativeToDart_Dictionary(_item_1(index)); |
| 282 } | 282 } |
| 283 | 283 |
| 284 @JSName('item') | 284 @JSName('item') |
| 285 @DomName('SQLResultSetRowList.item') | 285 @DomName('SQLResultSetRowList.item') |
| 286 @DocsEditable() | 286 @DocsEditable() |
| 287 _item_1(index) native ; | 287 _item_1(index) native; |
| 288 } | 288 } |
| 289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 289 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 290 // for details. All rights reserved. Use of this source code is governed by a | 290 // for details. All rights reserved. Use of this source code is governed by a |
| 291 // BSD-style license that can be found in the LICENSE file. | 291 // BSD-style license that can be found in the LICENSE file. |
| 292 | 292 |
| 293 @DocsEditable() | 293 @DocsEditable() |
| 294 @DomName('SQLTransaction') | 294 @DomName('SQLTransaction') |
| 295 @SupportedBrowser(SupportedBrowser.CHROME) | 295 @SupportedBrowser(SupportedBrowser.CHROME) |
| 296 @SupportedBrowser(SupportedBrowser.SAFARI) | 296 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 297 @Experimental() | 297 @Experimental() |
| 298 // http://www.w3.org/TR/webdatabase/#sqltransaction | 298 // http://www.w3.org/TR/webdatabase/#sqltransaction |
| 299 @deprecated // deprecated | 299 @deprecated // deprecated |
| 300 @Native("SQLTransaction") | 300 @Native("SQLTransaction") |
| 301 class SqlTransaction extends Interceptor { | 301 class SqlTransaction extends Interceptor { |
| 302 // To suppress missing implicit constructor warnings. | 302 // To suppress missing implicit constructor warnings. |
| 303 factory SqlTransaction._() { | 303 factory SqlTransaction._() { |
| 304 throw new UnsupportedError("Not supported"); | 304 throw new UnsupportedError("Not supported"); |
| 305 } | 305 } |
| 306 | 306 |
| 307 @DomName('SQLTransaction.executeSql') | 307 @DomName('SQLTransaction.executeSql') |
| 308 @DocsEditable() | 308 @DocsEditable() |
| 309 void executeSql(String sqlStatement, | 309 void executeSql(String sqlStatement, |
| 310 [List arguments, | 310 [List arguments, |
| 311 SqlStatementCallback callback, | 311 SqlStatementCallback callback, |
| 312 SqlStatementErrorCallback errorCallback]) native ; | 312 SqlStatementErrorCallback errorCallback]) native; |
| 313 } | 313 } |
| OLD | NEW |