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 */ |
11 library dart.dom.web_sql; | 11 library dart.dom.web_sql; |
12 | 12 |
13 import 'dart:async'; | 13 import 'dart:async'; |
14 import 'dart:collection'; | 14 import 'dart:collection'; |
15 import 'dart:_internal'; | 15 import 'dart:_internal'; |
16 import 'dart:html'; | 16 import 'dart:html'; |
17 import 'dart:html_common'; | 17 import 'dart:html_common'; |
18 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JSName, Native; | |
19 import 'dart:_foreign_helper' show JS; | 18 import 'dart:_foreign_helper' show JS; |
20 import 'dart:_interceptors' show Interceptor; | 19 import 'dart:_interceptors' show Interceptor; |
21 // DO NOT EDIT - unless you are editing documentation as per: | 20 // DO NOT EDIT - unless you are editing documentation as per: |
22 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation | 21 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
23 // Auto-generated dart:audio library. | 22 // Auto-generated dart:audio library. |
24 | 23 |
| 24 import 'dart:_js_helper' |
| 25 show |
| 26 convertDartClosureToJS, |
| 27 Creates, |
| 28 JSName, |
| 29 Native, |
| 30 JavaScriptIndexingBehavior; |
| 31 |
25 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 32 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
26 // for details. All rights reserved. Use of this source code is governed by a | 33 // for details. All rights reserved. Use of this source code is governed by a |
27 // BSD-style license that can be found in the LICENSE file. | 34 // BSD-style license that can be found in the LICENSE file. |
28 | 35 |
29 // WARNING: Do not edit - generated code. | 36 // WARNING: Do not edit - generated code. |
30 | 37 |
31 @DomName('SQLStatementCallback') | 38 @DomName('SQLStatementCallback') |
32 // http://www.w3.org/TR/webdatabase/#sqlstatementcallback | 39 // http://www.w3.org/TR/webdatabase/#sqlstatementcallback |
33 @Experimental() // deprecated | 40 @Experimental() // deprecated |
34 typedef void SqlStatementCallback( | 41 typedef void SqlStatementCallback( |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 270 } |
264 if (len == 0) throw new StateError("No elements"); | 271 if (len == 0) throw new StateError("No elements"); |
265 throw new StateError("More than one element"); | 272 throw new StateError("More than one element"); |
266 } | 273 } |
267 | 274 |
268 Map elementAt(int index) => this[index]; | 275 Map elementAt(int index) => this[index]; |
269 // -- end List<Map> mixins. | 276 // -- end List<Map> mixins. |
270 | 277 |
271 @DomName('SQLResultSetRowList.item') | 278 @DomName('SQLResultSetRowList.item') |
272 @DocsEditable() | 279 @DocsEditable() |
273 @Creates('=Object') | |
274 Map item(int index) { | 280 Map item(int index) { |
275 return convertNativeToDart_Dictionary(_item_1(index)); | 281 return convertNativeToDart_Dictionary(_item_1(index)); |
276 } | 282 } |
277 | 283 |
278 @JSName('item') | 284 @JSName('item') |
279 @DomName('SQLResultSetRowList.item') | 285 @DomName('SQLResultSetRowList.item') |
280 @DocsEditable() | 286 @DocsEditable() |
281 @Creates('=Object') | |
282 _item_1(index) native; | 287 _item_1(index) native; |
283 } | 288 } |
284 // 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 |
285 // 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 |
286 // BSD-style license that can be found in the LICENSE file. | 291 // BSD-style license that can be found in the LICENSE file. |
287 | 292 |
288 @DocsEditable() | 293 @DocsEditable() |
289 @DomName('SQLTransaction') | 294 @DomName('SQLTransaction') |
290 @SupportedBrowser(SupportedBrowser.CHROME) | 295 @SupportedBrowser(SupportedBrowser.CHROME) |
291 @SupportedBrowser(SupportedBrowser.SAFARI) | 296 @SupportedBrowser(SupportedBrowser.SAFARI) |
292 @Experimental() | 297 @Experimental() |
293 // http://www.w3.org/TR/webdatabase/#sqltransaction | 298 // http://www.w3.org/TR/webdatabase/#sqltransaction |
294 @deprecated // deprecated | 299 @deprecated // deprecated |
295 @Native("SQLTransaction") | 300 @Native("SQLTransaction") |
296 class SqlTransaction extends Interceptor { | 301 class SqlTransaction extends Interceptor { |
297 // To suppress missing implicit constructor warnings. | 302 // To suppress missing implicit constructor warnings. |
298 factory SqlTransaction._() { | 303 factory SqlTransaction._() { |
299 throw new UnsupportedError("Not supported"); | 304 throw new UnsupportedError("Not supported"); |
300 } | 305 } |
301 | 306 |
302 @DomName('SQLTransaction.executeSql') | 307 @DomName('SQLTransaction.executeSql') |
303 @DocsEditable() | 308 @DocsEditable() |
304 void executeSql(String sqlStatement, List<Object> arguments, | 309 void executeSql(String sqlStatement, |
305 [SqlStatementCallback callback, | 310 [List arguments, |
| 311 SqlStatementCallback callback, |
306 SqlStatementErrorCallback errorCallback]) native; | 312 SqlStatementErrorCallback errorCallback]) native; |
307 } | 313 } |
OLD | NEW |