| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 | 24 |
| 25 | 25 |
| 26 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 26 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 27 // for details. All rights reserved. Use of this source code is governed by a | 27 // for details. All rights reserved. Use of this source code is governed by a |
| 28 // BSD-style license that can be found in the LICENSE file. | 28 // BSD-style license that can be found in the LICENSE file. |
| 29 | 29 |
| 30 // WARNING: Do not edit - generated code. | 30 // WARNING: Do not edit - generated code. |
| 31 | 31 |
| 32 | 32 |
| 33 @DomName('SQLStatementCallback') |
| 34 // http://www.w3.org/TR/webdatabase/#sqlstatementcallback |
| 35 @Experimental // deprecated |
| 33 typedef void SqlStatementCallback(SqlTransaction transaction, SqlResultSet resul
tSet); | 36 typedef void SqlStatementCallback(SqlTransaction transaction, SqlResultSet resul
tSet); |
| 34 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 37 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 35 // for details. All rights reserved. Use of this source code is governed by a | 38 // for details. All rights reserved. Use of this source code is governed by a |
| 36 // BSD-style license that can be found in the LICENSE file. | 39 // BSD-style license that can be found in the LICENSE file. |
| 37 | 40 |
| 38 // WARNING: Do not edit - generated code. | 41 // WARNING: Do not edit - generated code. |
| 39 | 42 |
| 40 | 43 |
| 44 @DomName('SQLStatementErrorCallback') |
| 45 // http://www.w3.org/TR/webdatabase/#sqlstatementerrorcallback |
| 46 @Experimental // deprecated |
| 41 typedef void SqlStatementErrorCallback(SqlTransaction transaction, SqlError erro
r); | 47 typedef void SqlStatementErrorCallback(SqlTransaction transaction, SqlError erro
r); |
| 42 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 48 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 43 // for details. All rights reserved. Use of this source code is governed by a | 49 // for details. All rights reserved. Use of this source code is governed by a |
| 44 // BSD-style license that can be found in the LICENSE file. | 50 // BSD-style license that can be found in the LICENSE file. |
| 45 | 51 |
| 46 // WARNING: Do not edit - generated code. | 52 // WARNING: Do not edit - generated code. |
| 47 | 53 |
| 48 | 54 |
| 55 @DomName('SQLTransactionCallback') |
| 56 // http://www.w3.org/TR/webdatabase/#sqltransactioncallback |
| 57 @Experimental // deprecated |
| 49 typedef void SqlTransactionCallback(SqlTransaction transaction); | 58 typedef void SqlTransactionCallback(SqlTransaction transaction); |
| 50 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 59 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 51 // for details. All rights reserved. Use of this source code is governed by a | 60 // for details. All rights reserved. Use of this source code is governed by a |
| 52 // BSD-style license that can be found in the LICENSE file. | 61 // BSD-style license that can be found in the LICENSE file. |
| 53 | 62 |
| 54 // WARNING: Do not edit - generated code. | 63 // WARNING: Do not edit - generated code. |
| 55 | 64 |
| 56 | 65 |
| 66 @DomName('SQLTransactionErrorCallback') |
| 67 // http://www.w3.org/TR/webdatabase/#sqltransactionerrorcallback |
| 68 @Experimental // deprecated |
| 57 typedef void SqlTransactionErrorCallback(SqlError error); | 69 typedef void SqlTransactionErrorCallback(SqlError error); |
| 58 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 70 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 59 // for details. All rights reserved. Use of this source code is governed by a | 71 // for details. All rights reserved. Use of this source code is governed by a |
| 60 // BSD-style license that can be found in the LICENSE file. | 72 // BSD-style license that can be found in the LICENSE file. |
| 61 | 73 |
| 62 // WARNING: Do not edit - generated code. | 74 // WARNING: Do not edit - generated code. |
| 63 | 75 |
| 64 | 76 |
| 65 @DocsEditable | 77 @DocsEditable |
| 66 @DomName('Database') | 78 @DomName('Database') |
| 67 @SupportedBrowser(SupportedBrowser.CHROME) | 79 @SupportedBrowser(SupportedBrowser.CHROME) |
| 68 @SupportedBrowser(SupportedBrowser.SAFARI) | 80 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 69 @Experimental | 81 @Experimental |
| 82 // http://www.w3.org/TR/webdatabase/#asynchronous-database-api |
| 83 @Experimental // deprecated |
| 70 class SqlDatabase extends NativeFieldWrapperClass1 { | 84 class SqlDatabase extends NativeFieldWrapperClass1 { |
| 71 SqlDatabase.internal(); | 85 SqlDatabase.internal(); |
| 72 | 86 |
| 73 /// Checks if this type is supported on the current platform. | 87 /// Checks if this type is supported on the current platform. |
| 74 static bool get supported => true; | 88 static bool get supported => true; |
| 75 | 89 |
| 76 @DomName('Database.version') | 90 @DomName('Database.version') |
| 77 @DocsEditable | 91 @DocsEditable |
| 78 String get version native "Database_version_Getter"; | 92 String get version native "Database_version_Getter"; |
| 79 | 93 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 104 } | 118 } |
| 105 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 119 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 106 // for details. All rights reserved. Use of this source code is governed by a | 120 // for details. All rights reserved. Use of this source code is governed by a |
| 107 // BSD-style license that can be found in the LICENSE file. | 121 // BSD-style license that can be found in the LICENSE file. |
| 108 | 122 |
| 109 // WARNING: Do not edit - generated code. | 123 // WARNING: Do not edit - generated code. |
| 110 | 124 |
| 111 | 125 |
| 112 @DocsEditable | 126 @DocsEditable |
| 113 @DomName('SQLError') | 127 @DomName('SQLError') |
| 128 // http://www.w3.org/TR/webdatabase/#sqlerror |
| 129 @Experimental // deprecated |
| 114 class SqlError extends NativeFieldWrapperClass1 { | 130 class SqlError extends NativeFieldWrapperClass1 { |
| 115 SqlError.internal(); | 131 SqlError.internal(); |
| 116 | 132 |
| 117 @DomName('SQLError.CONSTRAINT_ERR') | 133 @DomName('SQLError.CONSTRAINT_ERR') |
| 118 @DocsEditable | 134 @DocsEditable |
| 119 static const int CONSTRAINT_ERR = 6; | 135 static const int CONSTRAINT_ERR = 6; |
| 120 | 136 |
| 121 @DomName('SQLError.DATABASE_ERR') | 137 @DomName('SQLError.DATABASE_ERR') |
| 122 @DocsEditable | 138 @DocsEditable |
| 123 static const int DATABASE_ERR = 1; | 139 static const int DATABASE_ERR = 1; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 } | 173 } |
| 158 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 174 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 159 // for details. All rights reserved. Use of this source code is governed by a | 175 // for details. All rights reserved. Use of this source code is governed by a |
| 160 // BSD-style license that can be found in the LICENSE file. | 176 // BSD-style license that can be found in the LICENSE file. |
| 161 | 177 |
| 162 // WARNING: Do not edit - generated code. | 178 // WARNING: Do not edit - generated code. |
| 163 | 179 |
| 164 | 180 |
| 165 @DocsEditable | 181 @DocsEditable |
| 166 @DomName('SQLException') | 182 @DomName('SQLException') |
| 183 // http://www.w3.org/TR/webdatabase/#sqlexception |
| 184 @Experimental // deprecated |
| 167 class SqlException extends NativeFieldWrapperClass1 { | 185 class SqlException extends NativeFieldWrapperClass1 { |
| 168 SqlException.internal(); | 186 SqlException.internal(); |
| 169 | 187 |
| 170 @DomName('SQLException.CONSTRAINT_ERR') | 188 @DomName('SQLException.CONSTRAINT_ERR') |
| 171 @DocsEditable | 189 @DocsEditable |
| 172 static const int CONSTRAINT_ERR = 6; | 190 static const int CONSTRAINT_ERR = 6; |
| 173 | 191 |
| 174 @DomName('SQLException.DATABASE_ERR') | 192 @DomName('SQLException.DATABASE_ERR') |
| 175 @DocsEditable | 193 @DocsEditable |
| 176 static const int DATABASE_ERR = 1; | 194 static const int DATABASE_ERR = 1; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 } | 228 } |
| 211 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 229 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 212 // for details. All rights reserved. Use of this source code is governed by a | 230 // for details. All rights reserved. Use of this source code is governed by a |
| 213 // BSD-style license that can be found in the LICENSE file. | 231 // BSD-style license that can be found in the LICENSE file. |
| 214 | 232 |
| 215 // WARNING: Do not edit - generated code. | 233 // WARNING: Do not edit - generated code. |
| 216 | 234 |
| 217 | 235 |
| 218 @DocsEditable | 236 @DocsEditable |
| 219 @DomName('SQLResultSet') | 237 @DomName('SQLResultSet') |
| 238 // http://www.w3.org/TR/webdatabase/#sqlresultset |
| 239 @Experimental // deprecated |
| 220 class SqlResultSet extends NativeFieldWrapperClass1 { | 240 class SqlResultSet extends NativeFieldWrapperClass1 { |
| 221 SqlResultSet.internal(); | 241 SqlResultSet.internal(); |
| 222 | 242 |
| 223 @DomName('SQLResultSet.insertId') | 243 @DomName('SQLResultSet.insertId') |
| 224 @DocsEditable | 244 @DocsEditable |
| 225 int get insertId native "SQLResultSet_insertId_Getter"; | 245 int get insertId native "SQLResultSet_insertId_Getter"; |
| 226 | 246 |
| 227 @DomName('SQLResultSet.rows') | 247 @DomName('SQLResultSet.rows') |
| 228 @DocsEditable | 248 @DocsEditable |
| 229 SqlResultSetRowList get rows native "SQLResultSet_rows_Getter"; | 249 SqlResultSetRowList get rows native "SQLResultSet_rows_Getter"; |
| 230 | 250 |
| 231 @DomName('SQLResultSet.rowsAffected') | 251 @DomName('SQLResultSet.rowsAffected') |
| 232 @DocsEditable | 252 @DocsEditable |
| 233 int get rowsAffected native "SQLResultSet_rowsAffected_Getter"; | 253 int get rowsAffected native "SQLResultSet_rowsAffected_Getter"; |
| 234 | 254 |
| 235 } | 255 } |
| 236 // 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 |
| 237 // 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 |
| 238 // BSD-style license that can be found in the LICENSE file. | 258 // BSD-style license that can be found in the LICENSE file. |
| 239 | 259 |
| 240 // WARNING: Do not edit - generated code. | 260 // WARNING: Do not edit - generated code. |
| 241 | 261 |
| 242 | 262 |
| 243 @DocsEditable | 263 @DocsEditable |
| 244 @DomName('SQLResultSetRowList') | 264 @DomName('SQLResultSetRowList') |
| 265 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist |
| 266 @Experimental // deprecated |
| 245 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> { |
| 246 SqlResultSetRowList.internal(); | 268 SqlResultSetRowList.internal(); |
| 247 | 269 |
| 248 @DomName('SQLResultSetRowList.length') | 270 @DomName('SQLResultSetRowList.length') |
| 249 @DocsEditable | 271 @DocsEditable |
| 250 int get length native "SQLResultSetRowList_length_Getter"; | 272 int get length native "SQLResultSetRowList_length_Getter"; |
| 251 | 273 |
| 252 Map operator[](int index) { | 274 Map operator[](int index) { |
| 253 if (index < 0 || index >= length) | 275 if (index < 0 || index >= length) |
| 254 throw new RangeError.range(index, 0, length); | 276 throw new RangeError.range(index, 0, length); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 // BSD-style license that can be found in the LICENSE file. | 326 // BSD-style license that can be found in the LICENSE file. |
| 305 | 327 |
| 306 // WARNING: Do not edit - generated code. | 328 // WARNING: Do not edit - generated code. |
| 307 | 329 |
| 308 | 330 |
| 309 @DocsEditable | 331 @DocsEditable |
| 310 @DomName('SQLTransaction') | 332 @DomName('SQLTransaction') |
| 311 @SupportedBrowser(SupportedBrowser.CHROME) | 333 @SupportedBrowser(SupportedBrowser.CHROME) |
| 312 @SupportedBrowser(SupportedBrowser.SAFARI) | 334 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 313 @Experimental | 335 @Experimental |
| 336 // http://www.w3.org/TR/webdatabase/#sqltransaction |
| 337 @deprecated // deprecated |
| 314 class SqlTransaction extends NativeFieldWrapperClass1 { | 338 class SqlTransaction extends NativeFieldWrapperClass1 { |
| 315 SqlTransaction.internal(); | 339 SqlTransaction.internal(); |
| 316 | 340 |
| 317 @DomName('SQLTransaction.executeSql') | 341 @DomName('SQLTransaction.executeSql') |
| 318 @DocsEditable | 342 @DocsEditable |
| 319 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"; |
| 320 | 344 |
| 321 } | 345 } |
| 322 // 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 |
| 323 // 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 |
| 324 // BSD-style license that can be found in the LICENSE file. | 348 // BSD-style license that can be found in the LICENSE file. |
| 325 | 349 |
| 326 // WARNING: Do not edit - generated code. | 350 // WARNING: Do not edit - generated code. |
| 327 | 351 |
| 328 | 352 |
| 329 @DocsEditable | 353 @DocsEditable |
| 330 @DomName('SQLTransactionSync') | 354 @DomName('SQLTransactionSync') |
| 331 @SupportedBrowser(SupportedBrowser.CHROME) | 355 @SupportedBrowser(SupportedBrowser.CHROME) |
| 332 @SupportedBrowser(SupportedBrowser.SAFARI) | 356 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 333 @Experimental | 357 @Experimental |
| 358 // http://www.w3.org/TR/webdatabase/#sqltransactionsync |
| 359 @Experimental // deprecated |
| 334 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 { | 360 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 { |
| 335 _SQLTransactionSync.internal(); | 361 _SQLTransactionSync.internal(); |
| 336 | 362 |
| 337 } | 363 } |
| OLD | NEW |