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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 @Deprecated("Internal Use Only") | 112 @Deprecated("Internal Use Only") |
113 static SqlDatabase internalCreateSqlDatabase() { | 113 static SqlDatabase internalCreateSqlDatabase() { |
114 return new SqlDatabase._internalWrap(); | 114 return new SqlDatabase._internalWrap(); |
115 } | 115 } |
116 | 116 |
117 factory SqlDatabase._internalWrap() { | 117 factory SqlDatabase._internalWrap() { |
118 return new SqlDatabase.internal_(); | 118 return new SqlDatabase.internal_(); |
119 } | 119 } |
120 | 120 |
| 121 @Deprecated("Internal Use Only") |
121 SqlDatabase.internal_() { } | 122 SqlDatabase.internal_() { } |
122 | 123 |
123 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | 124 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); |
124 int get hashCode => unwrap_jso(this).hashCode; | 125 int get hashCode => unwrap_jso(this).hashCode; |
125 | 126 |
126 /// Checks if this type is supported on the current platform. | 127 /// Checks if this type is supported on the current platform. |
127 static bool get supported => true; | 128 static bool get supported => true; |
128 | 129 |
129 @DomName('Database.version') | 130 @DomName('Database.version') |
130 @DocsEditable() | 131 @DocsEditable() |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 | 192 |
192 @Deprecated("Internal Use Only") | 193 @Deprecated("Internal Use Only") |
193 static SqlError internalCreateSqlError() { | 194 static SqlError internalCreateSqlError() { |
194 return new SqlError._internalWrap(); | 195 return new SqlError._internalWrap(); |
195 } | 196 } |
196 | 197 |
197 factory SqlError._internalWrap() { | 198 factory SqlError._internalWrap() { |
198 return new SqlError.internal_(); | 199 return new SqlError.internal_(); |
199 } | 200 } |
200 | 201 |
| 202 @Deprecated("Internal Use Only") |
201 SqlError.internal_() { } | 203 SqlError.internal_() { } |
202 | 204 |
203 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | 205 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); |
204 int get hashCode => unwrap_jso(this).hashCode; | 206 int get hashCode => unwrap_jso(this).hashCode; |
205 | 207 |
206 @DomName('SQLError.CONSTRAINT_ERR') | 208 @DomName('SQLError.CONSTRAINT_ERR') |
207 @DocsEditable() | 209 @DocsEditable() |
208 static const int CONSTRAINT_ERR = 6; | 210 static const int CONSTRAINT_ERR = 6; |
209 | 211 |
210 @DomName('SQLError.DATABASE_ERR') | 212 @DomName('SQLError.DATABASE_ERR') |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 | 263 |
262 @Deprecated("Internal Use Only") | 264 @Deprecated("Internal Use Only") |
263 static SqlResultSet internalCreateSqlResultSet() { | 265 static SqlResultSet internalCreateSqlResultSet() { |
264 return new SqlResultSet._internalWrap(); | 266 return new SqlResultSet._internalWrap(); |
265 } | 267 } |
266 | 268 |
267 factory SqlResultSet._internalWrap() { | 269 factory SqlResultSet._internalWrap() { |
268 return new SqlResultSet.internal_(); | 270 return new SqlResultSet.internal_(); |
269 } | 271 } |
270 | 272 |
| 273 @Deprecated("Internal Use Only") |
271 SqlResultSet.internal_() { } | 274 SqlResultSet.internal_() { } |
272 | 275 |
273 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | 276 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); |
274 int get hashCode => unwrap_jso(this).hashCode; | 277 int get hashCode => unwrap_jso(this).hashCode; |
275 | 278 |
276 @DomName('SQLResultSet.insertId') | 279 @DomName('SQLResultSet.insertId') |
277 @DocsEditable() | 280 @DocsEditable() |
278 int get insertId => _blink.BlinkSQLResultSet.instance.insertId_Getter_(unwrap_
jso(this)); | 281 int get insertId => _blink.BlinkSQLResultSet.instance.insertId_Getter_(unwrap_
jso(this)); |
279 | 282 |
280 @DomName('SQLResultSet.rows') | 283 @DomName('SQLResultSet.rows') |
(...skipping 22 matching lines...) Expand all Loading... |
303 | 306 |
304 @Deprecated("Internal Use Only") | 307 @Deprecated("Internal Use Only") |
305 static SqlResultSetRowList internalCreateSqlResultSetRowList() { | 308 static SqlResultSetRowList internalCreateSqlResultSetRowList() { |
306 return new SqlResultSetRowList._internalWrap(); | 309 return new SqlResultSetRowList._internalWrap(); |
307 } | 310 } |
308 | 311 |
309 factory SqlResultSetRowList._internalWrap() { | 312 factory SqlResultSetRowList._internalWrap() { |
310 return new SqlResultSetRowList.internal_(); | 313 return new SqlResultSetRowList.internal_(); |
311 } | 314 } |
312 | 315 |
| 316 @Deprecated("Internal Use Only") |
313 SqlResultSetRowList.internal_() { } | 317 SqlResultSetRowList.internal_() { } |
314 | 318 |
315 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | 319 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); |
316 int get hashCode => unwrap_jso(this).hashCode; | 320 int get hashCode => unwrap_jso(this).hashCode; |
317 | 321 |
318 @DomName('SQLResultSetRowList.length') | 322 @DomName('SQLResultSetRowList.length') |
319 @DocsEditable() | 323 @DocsEditable() |
320 int get length => _blink.BlinkSQLResultSetRowList.instance.length_Getter_(unwr
ap_jso(this)); | 324 int get length => _blink.BlinkSQLResultSetRowList.instance.length_Getter_(unwr
ap_jso(this)); |
321 | 325 |
322 Map operator[](int index) { | 326 Map operator[](int index) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 | 394 |
391 @Deprecated("Internal Use Only") | 395 @Deprecated("Internal Use Only") |
392 static SqlTransaction internalCreateSqlTransaction() { | 396 static SqlTransaction internalCreateSqlTransaction() { |
393 return new SqlTransaction._internalWrap(); | 397 return new SqlTransaction._internalWrap(); |
394 } | 398 } |
395 | 399 |
396 factory SqlTransaction._internalWrap() { | 400 factory SqlTransaction._internalWrap() { |
397 return new SqlTransaction.internal_(); | 401 return new SqlTransaction.internal_(); |
398 } | 402 } |
399 | 403 |
| 404 @Deprecated("Internal Use Only") |
400 SqlTransaction.internal_() { } | 405 SqlTransaction.internal_() { } |
401 | 406 |
402 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); | 407 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(
this, other); |
403 int get hashCode => unwrap_jso(this).hashCode; | 408 int get hashCode => unwrap_jso(this).hashCode; |
404 | 409 |
405 @DomName('SQLTransaction.executeSql') | 410 @DomName('SQLTransaction.executeSql') |
406 @DocsEditable() | 411 @DocsEditable() |
407 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall
back callback, SqlStatementErrorCallback errorCallback]) => _blink.BlinkSQLTrans
action.instance.executeSql_Callback_4_(unwrap_jso(this), sqlStatement, unwrap_js
o(arguments), unwrap_jso((transaction, resultSet) => callback(wrap_jso(transacti
on), wrap_jso(resultSet))), unwrap_jso((transaction, error) => errorCallback(wra
p_jso(transaction), wrap_jso(error)))); | 412 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall
back callback, SqlStatementErrorCallback errorCallback]) => _blink.BlinkSQLTrans
action.instance.executeSql_Callback_4_(unwrap_jso(this), sqlStatement, unwrap_js
o(arguments), unwrap_jso((transaction, resultSet) => callback(wrap_jso(transacti
on), wrap_jso(resultSet))), unwrap_jso((transaction, error) => errorCallback(wra
p_jso(transaction), wrap_jso(error)))); |
408 | 413 |
409 } | 414 } |
OLD | NEW |