| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 | 63 |
| 64 typedef void SqlTransactionErrorCallback(SqlError error); | 64 typedef void SqlTransactionErrorCallback(SqlError error); |
| 65 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 65 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 66 // for details. All rights reserved. Use of this source code is governed by a | 66 // for details. All rights reserved. Use of this source code is governed by a |
| 67 // BSD-style license that can be found in the LICENSE file. | 67 // BSD-style license that can be found in the LICENSE file. |
| 68 | 68 |
| 69 // WARNING: Do not edit - generated code. | 69 // WARNING: Do not edit - generated code. |
| 70 | 70 |
| 71 | 71 |
| 72 typedef void SqlTransactionSyncCallback(SqlTransactionSync transaction); | |
| 73 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 74 // for details. All rights reserved. Use of this source code is governed by a | |
| 75 // BSD-style license that can be found in the LICENSE file. | |
| 76 | |
| 77 // WARNING: Do not edit - generated code. | |
| 78 | |
| 79 | |
| 80 @DocsEditable | 72 @DocsEditable |
| 81 @DomName('Database') | 73 @DomName('Database') |
| 82 @SupportedBrowser(SupportedBrowser.CHROME) | 74 @SupportedBrowser(SupportedBrowser.CHROME) |
| 83 @SupportedBrowser(SupportedBrowser.SAFARI) | 75 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 84 @Experimental | 76 @Experimental |
| 85 class SqlDatabase extends NativeFieldWrapperClass1 { | 77 class SqlDatabase extends NativeFieldWrapperClass1 { |
| 86 SqlDatabase.internal(); | 78 SqlDatabase.internal(); |
| 87 | 79 |
| 88 /// Checks if this type is supported on the current platform. | 80 /// Checks if this type is supported on the current platform. |
| 89 static bool get supported => true; | 81 static bool get supported => true; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 118 | 110 |
| 119 } | 111 } |
| 120 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 112 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 121 // for details. All rights reserved. Use of this source code is governed by a | 113 // for details. All rights reserved. Use of this source code is governed by a |
| 122 // BSD-style license that can be found in the LICENSE file. | 114 // BSD-style license that can be found in the LICENSE file. |
| 123 | 115 |
| 124 // WARNING: Do not edit - generated code. | 116 // WARNING: Do not edit - generated code. |
| 125 | 117 |
| 126 | 118 |
| 127 @DocsEditable | 119 @DocsEditable |
| 128 @DomName('DatabaseSync') | |
| 129 @SupportedBrowser(SupportedBrowser.CHROME) | |
| 130 @SupportedBrowser(SupportedBrowser.SAFARI) | |
| 131 @Experimental | |
| 132 class SqlDatabaseSync extends NativeFieldWrapperClass1 { | |
| 133 SqlDatabaseSync.internal(); | |
| 134 | |
| 135 @DomName('DatabaseSync.lastErrorMessage') | |
| 136 @DocsEditable | |
| 137 String get lastErrorMessage native "DatabaseSync_lastErrorMessage_Getter"; | |
| 138 | |
| 139 @DomName('DatabaseSync.version') | |
| 140 @DocsEditable | |
| 141 String get version native "DatabaseSync_version_Getter"; | |
| 142 | |
| 143 @DomName('DatabaseSync.changeVersion') | |
| 144 @DocsEditable | |
| 145 void changeVersion(String oldVersion, String newVersion, [SqlTransactionSyncCa
llback callback]) native "DatabaseSync_changeVersion_Callback"; | |
| 146 | |
| 147 @DomName('DatabaseSync.readTransaction') | |
| 148 @DocsEditable | |
| 149 void readTransaction(SqlTransactionSyncCallback callback) native "DatabaseSync
_readTransaction_Callback"; | |
| 150 | |
| 151 @DomName('DatabaseSync.transaction') | |
| 152 @DocsEditable | |
| 153 void transaction(SqlTransactionSyncCallback callback) native "DatabaseSync_tra
nsaction_Callback"; | |
| 154 | |
| 155 } | |
| 156 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 157 // for details. All rights reserved. Use of this source code is governed by a | |
| 158 // BSD-style license that can be found in the LICENSE file. | |
| 159 | |
| 160 // WARNING: Do not edit - generated code. | |
| 161 | |
| 162 | |
| 163 @DocsEditable | |
| 164 @DomName('SQLError') | 120 @DomName('SQLError') |
| 165 class SqlError extends NativeFieldWrapperClass1 { | 121 class SqlError extends NativeFieldWrapperClass1 { |
| 166 SqlError.internal(); | 122 SqlError.internal(); |
| 167 | 123 |
| 168 static const int CONSTRAINT_ERR = 6; | 124 static const int CONSTRAINT_ERR = 6; |
| 169 | 125 |
| 170 static const int DATABASE_ERR = 1; | 126 static const int DATABASE_ERR = 1; |
| 171 | 127 |
| 172 static const int QUOTA_ERR = 4; | 128 static const int QUOTA_ERR = 4; |
| 173 | 129 |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 | 444 |
| 489 } | 445 } |
| 490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 446 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 491 // for details. All rights reserved. Use of this source code is governed by a | 447 // for details. All rights reserved. Use of this source code is governed by a |
| 492 // BSD-style license that can be found in the LICENSE file. | 448 // BSD-style license that can be found in the LICENSE file. |
| 493 | 449 |
| 494 // WARNING: Do not edit - generated code. | 450 // WARNING: Do not edit - generated code. |
| 495 | 451 |
| 496 | 452 |
| 497 @DocsEditable | 453 @DocsEditable |
| 454 @DomName('DatabaseSync') |
| 455 @SupportedBrowser(SupportedBrowser.CHROME) |
| 456 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 457 @Experimental |
| 458 class _DatabaseSync extends NativeFieldWrapperClass1 { |
| 459 _DatabaseSync.internal(); |
| 460 |
| 461 } |
| 462 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 463 // for details. All rights reserved. Use of this source code is governed by a |
| 464 // BSD-style license that can be found in the LICENSE file. |
| 465 |
| 466 // WARNING: Do not edit - generated code. |
| 467 |
| 468 |
| 469 @DocsEditable |
| 498 @DomName('SQLTransactionSync') | 470 @DomName('SQLTransactionSync') |
| 499 @SupportedBrowser(SupportedBrowser.CHROME) | 471 @SupportedBrowser(SupportedBrowser.CHROME) |
| 500 @SupportedBrowser(SupportedBrowser.SAFARI) | 472 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 501 @Experimental | 473 @Experimental |
| 502 class SqlTransactionSync extends NativeFieldWrapperClass1 { | 474 class _SQLTransactionSync extends NativeFieldWrapperClass1 { |
| 503 SqlTransactionSync.internal(); | 475 _SQLTransactionSync.internal(); |
| 504 | |
| 505 @DomName('SQLTransactionSync.executeSql') | |
| 506 @DocsEditable | |
| 507 SqlResultSet executeSql(String sqlStatement, List arguments) native "SQLTransa
ctionSync_executeSql_Callback"; | |
| 508 | 476 |
| 509 } | 477 } |
| OLD | NEW |