| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // BSD-style license that can be found in the LICENSE file. | 74 // BSD-style license that can be found in the LICENSE file. |
| 75 | 75 |
| 76 | 76 |
| 77 @DocsEditable | 77 @DocsEditable |
| 78 @DomName('Database') | 78 @DomName('Database') |
| 79 @SupportedBrowser(SupportedBrowser.CHROME) | 79 @SupportedBrowser(SupportedBrowser.CHROME) |
| 80 @SupportedBrowser(SupportedBrowser.SAFARI) | 80 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 81 @Experimental | 81 @Experimental |
| 82 // http://www.w3.org/TR/webdatabase/#asynchronous-database-api | 82 // http://www.w3.org/TR/webdatabase/#asynchronous-database-api |
| 83 @Experimental // deprecated | 83 @Experimental // deprecated |
| 84 class SqlDatabase native "Database" { | 84 class SqlDatabase extends Interceptor native "Database" { |
| 85 | 85 |
| 86 /// Checks if this type is supported on the current platform. | 86 /// Checks if this type is supported on the current platform. |
| 87 static bool get supported => JS('bool', '!!(window.openDatabase)'); | 87 static bool get supported => JS('bool', '!!(window.openDatabase)'); |
| 88 | 88 |
| 89 @DomName('Database.version') | 89 @DomName('Database.version') |
| 90 @DocsEditable | 90 @DocsEditable |
| 91 final String version; | 91 final String version; |
| 92 | 92 |
| 93 /** | 93 /** |
| 94 * Atomically update the database version to [newVersion], asynchronously | 94 * Atomically update the database version to [newVersion], asynchronously |
| (...skipping 21 matching lines...) Expand all Loading... |
| 116 } | 116 } |
| 117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 117 // 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 | 118 // 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. | 119 // BSD-style license that can be found in the LICENSE file. |
| 120 | 120 |
| 121 | 121 |
| 122 @DocsEditable | 122 @DocsEditable |
| 123 @DomName('SQLError') | 123 @DomName('SQLError') |
| 124 // http://www.w3.org/TR/webdatabase/#sqlerror | 124 // http://www.w3.org/TR/webdatabase/#sqlerror |
| 125 @Experimental // deprecated | 125 @Experimental // deprecated |
| 126 class SqlError native "SQLError" { | 126 class SqlError extends Interceptor native "SQLError" { |
| 127 | 127 |
| 128 @DomName('SQLError.CONSTRAINT_ERR') | 128 @DomName('SQLError.CONSTRAINT_ERR') |
| 129 @DocsEditable | 129 @DocsEditable |
| 130 static const int CONSTRAINT_ERR = 6; | 130 static const int CONSTRAINT_ERR = 6; |
| 131 | 131 |
| 132 @DomName('SQLError.DATABASE_ERR') | 132 @DomName('SQLError.DATABASE_ERR') |
| 133 @DocsEditable | 133 @DocsEditable |
| 134 static const int DATABASE_ERR = 1; | 134 static const int DATABASE_ERR = 1; |
| 135 | 135 |
| 136 @DomName('SQLError.QUOTA_ERR') | 136 @DomName('SQLError.QUOTA_ERR') |
| (...skipping 30 matching lines...) Expand all Loading... |
| 167 } | 167 } |
| 168 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 168 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 169 // for details. All rights reserved. Use of this source code is governed by a | 169 // for details. All rights reserved. Use of this source code is governed by a |
| 170 // BSD-style license that can be found in the LICENSE file. | 170 // BSD-style license that can be found in the LICENSE file. |
| 171 | 171 |
| 172 | 172 |
| 173 @DocsEditable | 173 @DocsEditable |
| 174 @DomName('SQLException') | 174 @DomName('SQLException') |
| 175 // http://www.w3.org/TR/webdatabase/#sqlexception | 175 // http://www.w3.org/TR/webdatabase/#sqlexception |
| 176 @Experimental // deprecated | 176 @Experimental // deprecated |
| 177 class SqlException native "SQLException" { | 177 class SqlException extends Interceptor native "SQLException" { |
| 178 | 178 |
| 179 @DomName('SQLException.CONSTRAINT_ERR') | 179 @DomName('SQLException.CONSTRAINT_ERR') |
| 180 @DocsEditable | 180 @DocsEditable |
| 181 static const int CONSTRAINT_ERR = 6; | 181 static const int CONSTRAINT_ERR = 6; |
| 182 | 182 |
| 183 @DomName('SQLException.DATABASE_ERR') | 183 @DomName('SQLException.DATABASE_ERR') |
| 184 @DocsEditable | 184 @DocsEditable |
| 185 static const int DATABASE_ERR = 1; | 185 static const int DATABASE_ERR = 1; |
| 186 | 186 |
| 187 @DomName('SQLException.QUOTA_ERR') | 187 @DomName('SQLException.QUOTA_ERR') |
| (...skipping 30 matching lines...) Expand all Loading... |
| 218 } | 218 } |
| 219 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 219 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 220 // for details. All rights reserved. Use of this source code is governed by a | 220 // for details. All rights reserved. Use of this source code is governed by a |
| 221 // BSD-style license that can be found in the LICENSE file. | 221 // BSD-style license that can be found in the LICENSE file. |
| 222 | 222 |
| 223 | 223 |
| 224 @DocsEditable | 224 @DocsEditable |
| 225 @DomName('SQLResultSet') | 225 @DomName('SQLResultSet') |
| 226 // http://www.w3.org/TR/webdatabase/#sqlresultset | 226 // http://www.w3.org/TR/webdatabase/#sqlresultset |
| 227 @Experimental // deprecated | 227 @Experimental // deprecated |
| 228 class SqlResultSet native "SQLResultSet" { | 228 class SqlResultSet extends Interceptor native "SQLResultSet" { |
| 229 | 229 |
| 230 @DomName('SQLResultSet.insertId') | 230 @DomName('SQLResultSet.insertId') |
| 231 @DocsEditable | 231 @DocsEditable |
| 232 final int insertId; | 232 final int insertId; |
| 233 | 233 |
| 234 @DomName('SQLResultSet.rows') | 234 @DomName('SQLResultSet.rows') |
| 235 @DocsEditable | 235 @DocsEditable |
| 236 final SqlResultSetRowList rows; | 236 final SqlResultSetRowList rows; |
| 237 | 237 |
| 238 @DomName('SQLResultSet.rowsAffected') | 238 @DomName('SQLResultSet.rowsAffected') |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 // BSD-style license that can be found in the LICENSE file. | 315 // BSD-style license that can be found in the LICENSE file. |
| 316 | 316 |
| 317 | 317 |
| 318 @DocsEditable | 318 @DocsEditable |
| 319 @DomName('SQLTransaction') | 319 @DomName('SQLTransaction') |
| 320 @SupportedBrowser(SupportedBrowser.CHROME) | 320 @SupportedBrowser(SupportedBrowser.CHROME) |
| 321 @SupportedBrowser(SupportedBrowser.SAFARI) | 321 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 322 @Experimental | 322 @Experimental |
| 323 // http://www.w3.org/TR/webdatabase/#sqltransaction | 323 // http://www.w3.org/TR/webdatabase/#sqltransaction |
| 324 @deprecated // deprecated | 324 @deprecated // deprecated |
| 325 class SqlTransaction native "SQLTransaction" { | 325 class SqlTransaction extends Interceptor native "SQLTransaction" { |
| 326 | 326 |
| 327 @DomName('SQLTransaction.executeSql') | 327 @DomName('SQLTransaction.executeSql') |
| 328 @DocsEditable | 328 @DocsEditable |
| 329 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal
lback, SqlStatementErrorCallback errorCallback]) native; | 329 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal
lback, SqlStatementErrorCallback errorCallback]) native; |
| 330 } | 330 } |
| 331 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 331 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 332 // for details. All rights reserved. Use of this source code is governed by a | 332 // for details. All rights reserved. Use of this source code is governed by a |
| 333 // BSD-style license that can be found in the LICENSE file. | 333 // BSD-style license that can be found in the LICENSE file. |
| 334 | 334 |
| 335 | 335 |
| 336 @DocsEditable | 336 @DocsEditable |
| 337 @DomName('SQLTransactionSync') | 337 @DomName('SQLTransactionSync') |
| 338 @SupportedBrowser(SupportedBrowser.CHROME) | 338 @SupportedBrowser(SupportedBrowser.CHROME) |
| 339 @SupportedBrowser(SupportedBrowser.SAFARI) | 339 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 340 @Experimental | 340 @Experimental |
| 341 // http://www.w3.org/TR/webdatabase/#sqltransactionsync | 341 // http://www.w3.org/TR/webdatabase/#sqltransactionsync |
| 342 @Experimental // deprecated | 342 @Experimental // deprecated |
| 343 abstract class _SQLTransactionSync native "SQLTransactionSync" { | 343 abstract class _SQLTransactionSync extends Interceptor native "SQLTransactionSyn
c" { |
| 344 } | 344 } |
| OLD | NEW |