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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 throw new RangeError.index(index, this); | 221 throw new RangeError.index(index, this); |
222 return this.item(index); | 222 return this.item(index); |
223 } | 223 } |
224 void operator[]=(int index, Map value) { | 224 void operator[]=(int index, Map value) { |
225 throw new UnsupportedError("Cannot assign element of immutable List."); | 225 throw new UnsupportedError("Cannot assign element of immutable List."); |
226 } | 226 } |
227 // -- start List<Map> mixins. | 227 // -- start List<Map> mixins. |
228 // Map is the element type. | 228 // Map is the element type. |
229 | 229 |
230 | 230 |
231 void set length(int value) { | 231 set length(int value) { |
232 throw new UnsupportedError("Cannot resize immutable List."); | 232 throw new UnsupportedError("Cannot resize immutable List."); |
233 } | 233 } |
234 | 234 |
235 Map get first { | 235 Map get first { |
236 if (this.length > 0) { | 236 if (this.length > 0) { |
237 return JS('Map', '#[0]', this); | 237 return JS('Map', '#[0]', this); |
238 } | 238 } |
239 throw new StateError("No elements"); | 239 throw new StateError("No elements"); |
240 } | 240 } |
241 | 241 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 @deprecated // deprecated | 285 @deprecated // deprecated |
286 @Native("SQLTransaction") | 286 @Native("SQLTransaction") |
287 class SqlTransaction extends Interceptor { | 287 class SqlTransaction extends Interceptor { |
288 // To suppress missing implicit constructor warnings. | 288 // To suppress missing implicit constructor warnings. |
289 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } | 289 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } |
290 | 290 |
291 @DomName('SQLTransaction.executeSql') | 291 @DomName('SQLTransaction.executeSql') |
292 @DocsEditable() | 292 @DocsEditable() |
293 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall
back callback, SqlStatementErrorCallback errorCallback]) native; | 293 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall
back callback, SqlStatementErrorCallback errorCallback]) native; |
294 } | 294 } |
OLD | NEW |