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