| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // BSD-style license that can be found in the LICENSE file. | 60 // BSD-style license that can be found in the LICENSE file. |
| 61 | 61 |
| 62 // WARNING: Do not edit - generated code. | 62 // WARNING: Do not edit - generated code. |
| 63 | 63 |
| 64 | 64 |
| 65 typedef void SqlTransactionErrorCallback(SqlError error); | 65 typedef void SqlTransactionErrorCallback(SqlError error); |
| 66 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 66 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 67 // for details. All rights reserved. Use of this source code is governed by a | 67 // for details. All rights reserved. Use of this source code is governed by a |
| 68 // BSD-style license that can be found in the LICENSE file. | 68 // BSD-style license that can be found in the LICENSE file. |
| 69 | 69 |
| 70 // WARNING: Do not edit - generated code. | |
| 71 | |
| 72 | |
| 73 typedef void SqlTransactionSyncCallback(SqlTransactionSync transaction); | |
| 74 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 75 // for details. All rights reserved. Use of this source code is governed by a | |
| 76 // BSD-style license that can be found in the LICENSE file. | |
| 77 | |
| 78 | 70 |
| 79 @DocsEditable | 71 @DocsEditable |
| 80 @DomName('Database') | 72 @DomName('Database') |
| 81 @SupportedBrowser(SupportedBrowser.CHROME) | 73 @SupportedBrowser(SupportedBrowser.CHROME) |
| 82 @SupportedBrowser(SupportedBrowser.SAFARI) | 74 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 83 @Experimental | 75 @Experimental |
| 84 class SqlDatabase native "*Database" { | 76 class SqlDatabase native "*Database" { |
| 85 | 77 |
| 86 /// Checks if this type is supported on the current platform. | 78 /// Checks if this type is supported on the current platform. |
| 87 static bool get supported => JS('bool', '!!(window.openDatabase)'); | 79 static bool get supported => JS('bool', '!!(window.openDatabase)'); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 113 @DomName('Database.transaction') | 105 @DomName('Database.transaction') |
| 114 @DocsEditable | 106 @DocsEditable |
| 115 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback
errorCallback, VoidCallback successCallback]) native; | 107 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback
errorCallback, VoidCallback successCallback]) native; |
| 116 } | 108 } |
| 117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 109 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 118 // for details. All rights reserved. Use of this source code is governed by a | 110 // for details. All rights reserved. Use of this source code is governed by a |
| 119 // BSD-style license that can be found in the LICENSE file. | 111 // BSD-style license that can be found in the LICENSE file. |
| 120 | 112 |
| 121 | 113 |
| 122 @DocsEditable | 114 @DocsEditable |
| 123 @DomName('DatabaseSync') | |
| 124 @SupportedBrowser(SupportedBrowser.CHROME) | |
| 125 @SupportedBrowser(SupportedBrowser.SAFARI) | |
| 126 @Experimental | |
| 127 class SqlDatabaseSync native "*DatabaseSync" { | |
| 128 | |
| 129 @DomName('DatabaseSync.lastErrorMessage') | |
| 130 @DocsEditable | |
| 131 final String lastErrorMessage; | |
| 132 | |
| 133 @DomName('DatabaseSync.version') | |
| 134 @DocsEditable | |
| 135 final String version; | |
| 136 | |
| 137 @DomName('DatabaseSync.changeVersion') | |
| 138 @DocsEditable | |
| 139 void changeVersion(String oldVersion, String newVersion, [SqlTransactionSyncCa
llback callback]) native; | |
| 140 | |
| 141 @DomName('DatabaseSync.readTransaction') | |
| 142 @DocsEditable | |
| 143 void readTransaction(SqlTransactionSyncCallback callback) native; | |
| 144 | |
| 145 @DomName('DatabaseSync.transaction') | |
| 146 @DocsEditable | |
| 147 void transaction(SqlTransactionSyncCallback callback) native; | |
| 148 } | |
| 149 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 150 // for details. All rights reserved. Use of this source code is governed by a | |
| 151 // BSD-style license that can be found in the LICENSE file. | |
| 152 | |
| 153 | |
| 154 @DocsEditable | |
| 155 @DomName('SQLError') | 115 @DomName('SQLError') |
| 156 class SqlError native "*SQLError" { | 116 class SqlError native "*SQLError" { |
| 157 | 117 |
| 158 static const int CONSTRAINT_ERR = 6; | 118 static const int CONSTRAINT_ERR = 6; |
| 159 | 119 |
| 160 static const int DATABASE_ERR = 1; | 120 static const int DATABASE_ERR = 1; |
| 161 | 121 |
| 162 static const int QUOTA_ERR = 4; | 122 static const int QUOTA_ERR = 4; |
| 163 | 123 |
| 164 static const int SYNTAX_ERR = 5; | 124 static const int SYNTAX_ERR = 5; |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 @DomName('SQLTransaction.executeSql') | 427 @DomName('SQLTransaction.executeSql') |
| 468 @DocsEditable | 428 @DocsEditable |
| 469 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal
lback, SqlStatementErrorCallback errorCallback]) native; | 429 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal
lback, SqlStatementErrorCallback errorCallback]) native; |
| 470 } | 430 } |
| 471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 472 // for details. All rights reserved. Use of this source code is governed by a | 432 // for details. All rights reserved. Use of this source code is governed by a |
| 473 // BSD-style license that can be found in the LICENSE file. | 433 // BSD-style license that can be found in the LICENSE file. |
| 474 | 434 |
| 475 | 435 |
| 476 @DocsEditable | 436 @DocsEditable |
| 437 @DomName('DatabaseSync') |
| 438 @SupportedBrowser(SupportedBrowser.CHROME) |
| 439 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 440 @Experimental |
| 441 class _DatabaseSync native "*DatabaseSync" { |
| 442 } |
| 443 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 444 // for details. All rights reserved. Use of this source code is governed by a |
| 445 // BSD-style license that can be found in the LICENSE file. |
| 446 |
| 447 |
| 448 @DocsEditable |
| 477 @DomName('SQLTransactionSync') | 449 @DomName('SQLTransactionSync') |
| 478 @SupportedBrowser(SupportedBrowser.CHROME) | 450 @SupportedBrowser(SupportedBrowser.CHROME) |
| 479 @SupportedBrowser(SupportedBrowser.SAFARI) | 451 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 480 @Experimental | 452 @Experimental |
| 481 class SqlTransactionSync native "*SQLTransactionSync" { | 453 class _SQLTransactionSync native "*SQLTransactionSync" { |
| 482 | |
| 483 @DomName('SQLTransactionSync.executeSql') | |
| 484 @DocsEditable | |
| 485 SqlResultSet executeSql(String sqlStatement, List arguments) native; | |
| 486 } | 454 } |
| OLD | NEW |