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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 /** | 96 /** |
97 * Atomically update the database version to [newVersion], asynchronously | 97 * Atomically update the database version to [newVersion], asynchronously |
98 * running [callback] on the [SqlTransaction] representing this | 98 * running [callback] on the [SqlTransaction] representing this |
99 * [changeVersion] transaction. | 99 * [changeVersion] transaction. |
100 * | 100 * |
101 * If [callback] runs successfully, then [successCallback] is called. | 101 * If [callback] runs successfully, then [successCallback] is called. |
102 * Otherwise, [errorCallback] is called. | 102 * Otherwise, [errorCallback] is called. |
103 * | 103 * |
104 * [oldVersion] should match the database's current [version] exactly. | 104 * [oldVersion] should match the database's current [version] exactly. |
105 * | 105 * |
| 106 * See also: |
| 107 * |
106 * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom-database-c
hangeversion) from W3C. | 108 * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom-database-c
hangeversion) from W3C. |
107 */ | 109 */ |
108 @DomName('Database.changeVersion') | 110 @DomName('Database.changeVersion') |
109 @DocsEditable() | 111 @DocsEditable() |
110 void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallba
ck callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCall
back]) native; | 112 void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallba
ck callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCall
back]) native; |
111 | 113 |
112 @DomName('Database.readTransaction') | 114 @DomName('Database.readTransaction') |
113 @DocsEditable() | 115 @DocsEditable() |
114 void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCall
back errorCallback, VoidCallback successCallback]) native; | 116 void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCall
back errorCallback, VoidCallback successCallback]) native; |
115 | 117 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 @deprecated // deprecated | 287 @deprecated // deprecated |
286 @Native("SQLTransaction") | 288 @Native("SQLTransaction") |
287 class SqlTransaction extends Interceptor { | 289 class SqlTransaction extends Interceptor { |
288 // To suppress missing implicit constructor warnings. | 290 // To suppress missing implicit constructor warnings. |
289 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } | 291 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } |
290 | 292 |
291 @DomName('SQLTransaction.executeSql') | 293 @DomName('SQLTransaction.executeSql') |
292 @DocsEditable() | 294 @DocsEditable() |
293 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall
back callback, SqlStatementErrorCallback errorCallback]) native; | 295 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall
back callback, SqlStatementErrorCallback errorCallback]) native; |
294 } | 296 } |
OLD | NEW |