| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 extends NativeFieldWrapperClass1 { | 84 class SqlDatabase extends NativeFieldWrapperClass1 { |
| 85 // To suppress missing implicit constructor warnings. | 85 SqlDatabase.internal(); |
| 86 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); } | |
| 87 | 86 |
| 88 /// Checks if this type is supported on the current platform. | 87 /// Checks if this type is supported on the current platform. |
| 89 static bool get supported => true; | 88 static bool get supported => true; |
| 90 | 89 |
| 91 @DomName('Database.version') | 90 @DomName('Database.version') |
| 92 @DocsEditable | 91 @DocsEditable |
| 93 String get version native "Database_version_Getter"; | 92 String get version native "Database_version_Getter"; |
| 94 | 93 |
| 95 /** | 94 /** |
| 96 * Atomically update the database version to [newVersion], asynchronously | 95 * Atomically update the database version to [newVersion], asynchronously |
| (...skipping 25 matching lines...) Expand all Loading... |
| 122 // BSD-style license that can be found in the LICENSE file. | 121 // BSD-style license that can be found in the LICENSE file. |
| 123 | 122 |
| 124 // WARNING: Do not edit - generated code. | 123 // WARNING: Do not edit - generated code. |
| 125 | 124 |
| 126 | 125 |
| 127 @DocsEditable | 126 @DocsEditable |
| 128 @DomName('SQLError') | 127 @DomName('SQLError') |
| 129 // http://www.w3.org/TR/webdatabase/#sqlerror | 128 // http://www.w3.org/TR/webdatabase/#sqlerror |
| 130 @Experimental // deprecated | 129 @Experimental // deprecated |
| 131 class SqlError extends NativeFieldWrapperClass1 { | 130 class SqlError extends NativeFieldWrapperClass1 { |
| 132 // To suppress missing implicit constructor warnings. | 131 SqlError.internal(); |
| 133 factory SqlError._() { throw new UnsupportedError("Not supported"); } | |
| 134 | 132 |
| 135 @DomName('SQLError.CONSTRAINT_ERR') | 133 @DomName('SQLError.CONSTRAINT_ERR') |
| 136 @DocsEditable | 134 @DocsEditable |
| 137 static const int CONSTRAINT_ERR = 6; | 135 static const int CONSTRAINT_ERR = 6; |
| 138 | 136 |
| 139 @DomName('SQLError.DATABASE_ERR') | 137 @DomName('SQLError.DATABASE_ERR') |
| 140 @DocsEditable | 138 @DocsEditable |
| 141 static const int DATABASE_ERR = 1; | 139 static const int DATABASE_ERR = 1; |
| 142 | 140 |
| 143 @DomName('SQLError.QUOTA_ERR') | 141 @DomName('SQLError.QUOTA_ERR') |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 // BSD-style license that can be found in the LICENSE file. | 176 // BSD-style license that can be found in the LICENSE file. |
| 179 | 177 |
| 180 // WARNING: Do not edit - generated code. | 178 // WARNING: Do not edit - generated code. |
| 181 | 179 |
| 182 | 180 |
| 183 @DocsEditable | 181 @DocsEditable |
| 184 @DomName('SQLException') | 182 @DomName('SQLException') |
| 185 // http://www.w3.org/TR/webdatabase/#sqlexception | 183 // http://www.w3.org/TR/webdatabase/#sqlexception |
| 186 @Experimental // deprecated | 184 @Experimental // deprecated |
| 187 class SqlException extends NativeFieldWrapperClass1 { | 185 class SqlException extends NativeFieldWrapperClass1 { |
| 188 // To suppress missing implicit constructor warnings. | 186 SqlException.internal(); |
| 189 factory SqlException._() { throw new UnsupportedError("Not supported"); } | |
| 190 | 187 |
| 191 @DomName('SQLException.CONSTRAINT_ERR') | 188 @DomName('SQLException.CONSTRAINT_ERR') |
| 192 @DocsEditable | 189 @DocsEditable |
| 193 static const int CONSTRAINT_ERR = 6; | 190 static const int CONSTRAINT_ERR = 6; |
| 194 | 191 |
| 195 @DomName('SQLException.DATABASE_ERR') | 192 @DomName('SQLException.DATABASE_ERR') |
| 196 @DocsEditable | 193 @DocsEditable |
| 197 static const int DATABASE_ERR = 1; | 194 static const int DATABASE_ERR = 1; |
| 198 | 195 |
| 199 @DomName('SQLException.QUOTA_ERR') | 196 @DomName('SQLException.QUOTA_ERR') |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 // BSD-style license that can be found in the LICENSE file. | 231 // BSD-style license that can be found in the LICENSE file. |
| 235 | 232 |
| 236 // WARNING: Do not edit - generated code. | 233 // WARNING: Do not edit - generated code. |
| 237 | 234 |
| 238 | 235 |
| 239 @DocsEditable | 236 @DocsEditable |
| 240 @DomName('SQLResultSet') | 237 @DomName('SQLResultSet') |
| 241 // http://www.w3.org/TR/webdatabase/#sqlresultset | 238 // http://www.w3.org/TR/webdatabase/#sqlresultset |
| 242 @Experimental // deprecated | 239 @Experimental // deprecated |
| 243 class SqlResultSet extends NativeFieldWrapperClass1 { | 240 class SqlResultSet extends NativeFieldWrapperClass1 { |
| 244 // To suppress missing implicit constructor warnings. | 241 SqlResultSet.internal(); |
| 245 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); } | |
| 246 | 242 |
| 247 @DomName('SQLResultSet.insertId') | 243 @DomName('SQLResultSet.insertId') |
| 248 @DocsEditable | 244 @DocsEditable |
| 249 int get insertId native "SQLResultSet_insertId_Getter"; | 245 int get insertId native "SQLResultSet_insertId_Getter"; |
| 250 | 246 |
| 251 @DomName('SQLResultSet.rows') | 247 @DomName('SQLResultSet.rows') |
| 252 @DocsEditable | 248 @DocsEditable |
| 253 SqlResultSetRowList get rows native "SQLResultSet_rows_Getter"; | 249 SqlResultSetRowList get rows native "SQLResultSet_rows_Getter"; |
| 254 | 250 |
| 255 @DomName('SQLResultSet.rowsAffected') | 251 @DomName('SQLResultSet.rowsAffected') |
| 256 @DocsEditable | 252 @DocsEditable |
| 257 int get rowsAffected native "SQLResultSet_rowsAffected_Getter"; | 253 int get rowsAffected native "SQLResultSet_rowsAffected_Getter"; |
| 258 | 254 |
| 259 } | 255 } |
| 260 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 256 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 261 // for details. All rights reserved. Use of this source code is governed by a | 257 // for details. All rights reserved. Use of this source code is governed by a |
| 262 // BSD-style license that can be found in the LICENSE file. | 258 // BSD-style license that can be found in the LICENSE file. |
| 263 | 259 |
| 264 // WARNING: Do not edit - generated code. | 260 // WARNING: Do not edit - generated code. |
| 265 | 261 |
| 266 | 262 |
| 267 @DocsEditable | 263 @DocsEditable |
| 268 @DomName('SQLResultSetRowList') | 264 @DomName('SQLResultSetRowList') |
| 269 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist | 265 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist |
| 270 @Experimental // deprecated | 266 @Experimental // deprecated |
| 271 class SqlResultSetRowList extends NativeFieldWrapperClass1 with ListMixin<Map>,
ImmutableListMixin<Map> implements List<Map> { | 267 class SqlResultSetRowList extends NativeFieldWrapperClass1 with ListMixin<Map>,
ImmutableListMixin<Map> implements List<Map> { |
| 272 // To suppress missing implicit constructor warnings. | 268 SqlResultSetRowList.internal(); |
| 273 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported");
} | |
| 274 | 269 |
| 275 @DomName('SQLResultSetRowList.length') | 270 @DomName('SQLResultSetRowList.length') |
| 276 @DocsEditable | 271 @DocsEditable |
| 277 int get length native "SQLResultSetRowList_length_Getter"; | 272 int get length native "SQLResultSetRowList_length_Getter"; |
| 278 | 273 |
| 279 Map operator[](int index) { | 274 Map operator[](int index) { |
| 280 if (index < 0 || index >= length) | 275 if (index < 0 || index >= length) |
| 281 throw new RangeError.range(index, 0, length); | 276 throw new RangeError.range(index, 0, length); |
| 282 return _nativeIndexedGetter(index); | 277 return _nativeIndexedGetter(index); |
| 283 } | 278 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 329 |
| 335 | 330 |
| 336 @DocsEditable | 331 @DocsEditable |
| 337 @DomName('SQLTransaction') | 332 @DomName('SQLTransaction') |
| 338 @SupportedBrowser(SupportedBrowser.CHROME) | 333 @SupportedBrowser(SupportedBrowser.CHROME) |
| 339 @SupportedBrowser(SupportedBrowser.SAFARI) | 334 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 340 @Experimental | 335 @Experimental |
| 341 // http://www.w3.org/TR/webdatabase/#sqltransaction | 336 // http://www.w3.org/TR/webdatabase/#sqltransaction |
| 342 @deprecated // deprecated | 337 @deprecated // deprecated |
| 343 class SqlTransaction extends NativeFieldWrapperClass1 { | 338 class SqlTransaction extends NativeFieldWrapperClass1 { |
| 344 // To suppress missing implicit constructor warnings. | 339 SqlTransaction.internal(); |
| 345 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } | |
| 346 | 340 |
| 347 @DomName('SQLTransaction.executeSql') | 341 @DomName('SQLTransaction.executeSql') |
| 348 @DocsEditable | 342 @DocsEditable |
| 349 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal
lback, SqlStatementErrorCallback errorCallback]) native "SQLTransaction_executeS
ql_Callback"; | 343 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal
lback, SqlStatementErrorCallback errorCallback]) native "SQLTransaction_executeS
ql_Callback"; |
| 350 | 344 |
| 351 } | 345 } |
| 352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 346 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 353 // for details. All rights reserved. Use of this source code is governed by a | 347 // for details. All rights reserved. Use of this source code is governed by a |
| 354 // BSD-style license that can be found in the LICENSE file. | 348 // BSD-style license that can be found in the LICENSE file. |
| 355 | 349 |
| 356 // WARNING: Do not edit - generated code. | 350 // WARNING: Do not edit - generated code. |
| 357 | 351 |
| 358 | 352 |
| 359 @DocsEditable | 353 @DocsEditable |
| 360 @DomName('SQLTransactionSync') | 354 @DomName('SQLTransactionSync') |
| 361 @SupportedBrowser(SupportedBrowser.CHROME) | 355 @SupportedBrowser(SupportedBrowser.CHROME) |
| 362 @SupportedBrowser(SupportedBrowser.SAFARI) | 356 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 363 @Experimental | 357 @Experimental |
| 364 // http://www.w3.org/TR/webdatabase/#sqltransactionsync | 358 // http://www.w3.org/TR/webdatabase/#sqltransactionsync |
| 365 @Experimental // deprecated | 359 @Experimental // deprecated |
| 366 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 { | 360 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 { |
| 367 // To suppress missing implicit constructor warnings. | 361 _SQLTransactionSync.internal(); |
| 368 factory _SQLTransactionSync._() { throw new UnsupportedError("Not supported");
} | |
| 369 | 362 |
| 370 } | 363 } |
| OLD | NEW |