| 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. |
| 86 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); } |
| 85 | 87 |
| 86 /// Checks if this type is supported on the current platform. | 88 /// Checks if this type is supported on the current platform. |
| 87 static bool get supported => true; | 89 static bool get supported => true; |
| 88 | 90 |
| 89 @DomName('Database.version') | 91 @DomName('Database.version') |
| 90 @DocsEditable() | 92 @DocsEditable() |
| 91 String get version native "Database_version_Getter"; | 93 String get version native "Database_version_Getter"; |
| 92 | 94 |
| 93 /** | 95 /** |
| 94 * Atomically update the database version to [newVersion], asynchronously | 96 * Atomically update the database version to [newVersion], asynchronously |
| (...skipping 25 matching lines...) Expand all Loading... |
| 120 // BSD-style license that can be found in the LICENSE file. | 122 // BSD-style license that can be found in the LICENSE file. |
| 121 | 123 |
| 122 // WARNING: Do not edit - generated code. | 124 // WARNING: Do not edit - generated code. |
| 123 | 125 |
| 124 | 126 |
| 125 @DocsEditable() | 127 @DocsEditable() |
| 126 @DomName('SQLError') | 128 @DomName('SQLError') |
| 127 // http://www.w3.org/TR/webdatabase/#sqlerror | 129 // http://www.w3.org/TR/webdatabase/#sqlerror |
| 128 @Experimental() // deprecated | 130 @Experimental() // deprecated |
| 129 class SqlError extends NativeFieldWrapperClass1 { | 131 class SqlError extends NativeFieldWrapperClass1 { |
| 132 // To suppress missing implicit constructor warnings. |
| 133 factory SqlError._() { throw new UnsupportedError("Not supported"); } |
| 130 | 134 |
| 131 @DomName('SQLError.CONSTRAINT_ERR') | 135 @DomName('SQLError.CONSTRAINT_ERR') |
| 132 @DocsEditable() | 136 @DocsEditable() |
| 133 static const int CONSTRAINT_ERR = 6; | 137 static const int CONSTRAINT_ERR = 6; |
| 134 | 138 |
| 135 @DomName('SQLError.DATABASE_ERR') | 139 @DomName('SQLError.DATABASE_ERR') |
| 136 @DocsEditable() | 140 @DocsEditable() |
| 137 static const int DATABASE_ERR = 1; | 141 static const int DATABASE_ERR = 1; |
| 138 | 142 |
| 139 @DomName('SQLError.QUOTA_ERR') | 143 @DomName('SQLError.QUOTA_ERR') |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // BSD-style license that can be found in the LICENSE file. | 178 // BSD-style license that can be found in the LICENSE file. |
| 175 | 179 |
| 176 // WARNING: Do not edit - generated code. | 180 // WARNING: Do not edit - generated code. |
| 177 | 181 |
| 178 | 182 |
| 179 @DocsEditable() | 183 @DocsEditable() |
| 180 @DomName('SQLResultSet') | 184 @DomName('SQLResultSet') |
| 181 // http://www.w3.org/TR/webdatabase/#sqlresultset | 185 // http://www.w3.org/TR/webdatabase/#sqlresultset |
| 182 @Experimental() // deprecated | 186 @Experimental() // deprecated |
| 183 class SqlResultSet extends NativeFieldWrapperClass1 { | 187 class SqlResultSet extends NativeFieldWrapperClass1 { |
| 188 // To suppress missing implicit constructor warnings. |
| 189 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); } |
| 184 | 190 |
| 185 @DomName('SQLResultSet.insertId') | 191 @DomName('SQLResultSet.insertId') |
| 186 @DocsEditable() | 192 @DocsEditable() |
| 187 int get insertId native "SQLResultSet_insertId_Getter"; | 193 int get insertId native "SQLResultSet_insertId_Getter"; |
| 188 | 194 |
| 189 @DomName('SQLResultSet.rows') | 195 @DomName('SQLResultSet.rows') |
| 190 @DocsEditable() | 196 @DocsEditable() |
| 191 SqlResultSetRowList get rows native "SQLResultSet_rows_Getter"; | 197 SqlResultSetRowList get rows native "SQLResultSet_rows_Getter"; |
| 192 | 198 |
| 193 @DomName('SQLResultSet.rowsAffected') | 199 @DomName('SQLResultSet.rowsAffected') |
| 194 @DocsEditable() | 200 @DocsEditable() |
| 195 int get rowsAffected native "SQLResultSet_rowsAffected_Getter"; | 201 int get rowsAffected native "SQLResultSet_rowsAffected_Getter"; |
| 196 | 202 |
| 197 } | 203 } |
| 198 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 204 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 199 // for details. All rights reserved. Use of this source code is governed by a | 205 // for details. All rights reserved. Use of this source code is governed by a |
| 200 // BSD-style license that can be found in the LICENSE file. | 206 // BSD-style license that can be found in the LICENSE file. |
| 201 | 207 |
| 202 // WARNING: Do not edit - generated code. | 208 // WARNING: Do not edit - generated code. |
| 203 | 209 |
| 204 | 210 |
| 205 @DocsEditable() | 211 @DocsEditable() |
| 206 @DomName('SQLResultSetRowList') | 212 @DomName('SQLResultSetRowList') |
| 207 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist | 213 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist |
| 208 @Experimental() // deprecated | 214 @Experimental() // deprecated |
| 209 class SqlResultSetRowList extends NativeFieldWrapperClass1 with ListMixin<Map>,
ImmutableListMixin<Map> implements List { | 215 class SqlResultSetRowList extends NativeFieldWrapperClass1 with ListMixin<Map>,
ImmutableListMixin<Map> implements List { |
| 216 // To suppress missing implicit constructor warnings. |
| 217 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported");
} |
| 210 | 218 |
| 211 @DomName('SQLResultSetRowList.length') | 219 @DomName('SQLResultSetRowList.length') |
| 212 @DocsEditable() | 220 @DocsEditable() |
| 213 int get length native "SQLResultSetRowList_length_Getter"; | 221 int get length native "SQLResultSetRowList_length_Getter"; |
| 214 | 222 |
| 215 Map operator[](int index) { | 223 Map operator[](int index) { |
| 216 if (index < 0 || index >= length) | 224 if (index < 0 || index >= length) |
| 217 throw new RangeError.range(index, 0, length); | 225 throw new RangeError.range(index, 0, length); |
| 218 return _nativeIndexedGetter(index); | 226 return _nativeIndexedGetter(index); |
| 219 } | 227 } |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 278 |
| 271 | 279 |
| 272 @DocsEditable() | 280 @DocsEditable() |
| 273 @DomName('SQLTransaction') | 281 @DomName('SQLTransaction') |
| 274 @SupportedBrowser(SupportedBrowser.CHROME) | 282 @SupportedBrowser(SupportedBrowser.CHROME) |
| 275 @SupportedBrowser(SupportedBrowser.SAFARI) | 283 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 276 @Experimental() | 284 @Experimental() |
| 277 // http://www.w3.org/TR/webdatabase/#sqltransaction | 285 // http://www.w3.org/TR/webdatabase/#sqltransaction |
| 278 @deprecated // deprecated | 286 @deprecated // deprecated |
| 279 class SqlTransaction extends NativeFieldWrapperClass1 { | 287 class SqlTransaction extends NativeFieldWrapperClass1 { |
| 288 // To suppress missing implicit constructor warnings. |
| 289 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } |
| 280 | 290 |
| 281 @DomName('SQLTransaction.executeSql') | 291 @DomName('SQLTransaction.executeSql') |
| 282 @DocsEditable() | 292 @DocsEditable() |
| 283 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal
lback, SqlStatementErrorCallback errorCallback]) native "SQLTransaction_executeS
ql_Callback"; | 293 void executeSql(String sqlStatement, List arguments, [SqlStatementCallback cal
lback, SqlStatementErrorCallback errorCallback]) native "SQLTransaction_executeS
ql_Callback"; |
| 284 | 294 |
| 285 } | 295 } |
| 286 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 296 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 287 // for details. All rights reserved. Use of this source code is governed by a | 297 // for details. All rights reserved. Use of this source code is governed by a |
| 288 // BSD-style license that can be found in the LICENSE file. | 298 // BSD-style license that can be found in the LICENSE file. |
| 289 | 299 |
| 290 // WARNING: Do not edit - generated code. | 300 // WARNING: Do not edit - generated code. |
| 291 | 301 |
| 292 | 302 |
| 293 @DocsEditable() | 303 @DocsEditable() |
| 294 @DomName('SQLTransactionSync') | 304 @DomName('SQLTransactionSync') |
| 295 @SupportedBrowser(SupportedBrowser.CHROME) | 305 @SupportedBrowser(SupportedBrowser.CHROME) |
| 296 @SupportedBrowser(SupportedBrowser.SAFARI) | 306 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 297 @Experimental() | 307 @Experimental() |
| 298 // http://www.w3.org/TR/webdatabase/#sqltransactionsync | 308 // http://www.w3.org/TR/webdatabase/#sqltransactionsync |
| 299 @Experimental() // deprecated | 309 @Experimental() // deprecated |
| 300 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 { | 310 abstract class _SQLTransactionSync extends NativeFieldWrapperClass1 { |
| 311 // To suppress missing implicit constructor warnings. |
| 312 factory _SQLTransactionSync._() { throw new UnsupportedError("Not supported");
} |
| 301 | 313 |
| 302 } | 314 } |
| OLD | NEW |