| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 101 } |
| 102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 103 // for details. All rights reserved. Use of this source code is governed by a | 103 // for details. All rights reserved. Use of this source code is governed by a |
| 104 // BSD-style license that can be found in the LICENSE file. | 104 // BSD-style license that can be found in the LICENSE file. |
| 105 | 105 |
| 106 | 106 |
| 107 @DocsEditable | 107 @DocsEditable |
| 108 @DomName('SQLError') | 108 @DomName('SQLError') |
| 109 class SqlError native "SQLError" { | 109 class SqlError native "SQLError" { |
| 110 | 110 |
| 111 @DomName('SQLError.CONSTRAINT_ERR') |
| 112 @DocsEditable |
| 111 static const int CONSTRAINT_ERR = 6; | 113 static const int CONSTRAINT_ERR = 6; |
| 112 | 114 |
| 115 @DomName('SQLError.DATABASE_ERR') |
| 116 @DocsEditable |
| 113 static const int DATABASE_ERR = 1; | 117 static const int DATABASE_ERR = 1; |
| 114 | 118 |
| 119 @DomName('SQLError.QUOTA_ERR') |
| 120 @DocsEditable |
| 115 static const int QUOTA_ERR = 4; | 121 static const int QUOTA_ERR = 4; |
| 116 | 122 |
| 123 @DomName('SQLError.SYNTAX_ERR') |
| 124 @DocsEditable |
| 117 static const int SYNTAX_ERR = 5; | 125 static const int SYNTAX_ERR = 5; |
| 118 | 126 |
| 127 @DomName('SQLError.TIMEOUT_ERR') |
| 128 @DocsEditable |
| 119 static const int TIMEOUT_ERR = 7; | 129 static const int TIMEOUT_ERR = 7; |
| 120 | 130 |
| 131 @DomName('SQLError.TOO_LARGE_ERR') |
| 132 @DocsEditable |
| 121 static const int TOO_LARGE_ERR = 3; | 133 static const int TOO_LARGE_ERR = 3; |
| 122 | 134 |
| 135 @DomName('SQLError.UNKNOWN_ERR') |
| 136 @DocsEditable |
| 123 static const int UNKNOWN_ERR = 0; | 137 static const int UNKNOWN_ERR = 0; |
| 124 | 138 |
| 139 @DomName('SQLError.VERSION_ERR') |
| 140 @DocsEditable |
| 125 static const int VERSION_ERR = 2; | 141 static const int VERSION_ERR = 2; |
| 126 | 142 |
| 127 @DomName('SQLError.code') | 143 @DomName('SQLError.code') |
| 128 @DocsEditable | 144 @DocsEditable |
| 129 final int code; | 145 final int code; |
| 130 | 146 |
| 131 @DomName('SQLError.message') | 147 @DomName('SQLError.message') |
| 132 @DocsEditable | 148 @DocsEditable |
| 133 final String message; | 149 final String message; |
| 134 } | 150 } |
| 135 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 151 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 136 // for details. All rights reserved. Use of this source code is governed by a | 152 // for details. All rights reserved. Use of this source code is governed by a |
| 137 // BSD-style license that can be found in the LICENSE file. | 153 // BSD-style license that can be found in the LICENSE file. |
| 138 | 154 |
| 139 | 155 |
| 140 @DocsEditable | 156 @DocsEditable |
| 141 @DomName('SQLException') | 157 @DomName('SQLException') |
| 142 class SqlException native "SQLException" { | 158 class SqlException native "SQLException" { |
| 143 | 159 |
| 160 @DomName('SQLException.CONSTRAINT_ERR') |
| 161 @DocsEditable |
| 144 static const int CONSTRAINT_ERR = 6; | 162 static const int CONSTRAINT_ERR = 6; |
| 145 | 163 |
| 164 @DomName('SQLException.DATABASE_ERR') |
| 165 @DocsEditable |
| 146 static const int DATABASE_ERR = 1; | 166 static const int DATABASE_ERR = 1; |
| 147 | 167 |
| 168 @DomName('SQLException.QUOTA_ERR') |
| 169 @DocsEditable |
| 148 static const int QUOTA_ERR = 4; | 170 static const int QUOTA_ERR = 4; |
| 149 | 171 |
| 172 @DomName('SQLException.SYNTAX_ERR') |
| 173 @DocsEditable |
| 150 static const int SYNTAX_ERR = 5; | 174 static const int SYNTAX_ERR = 5; |
| 151 | 175 |
| 176 @DomName('SQLException.TIMEOUT_ERR') |
| 177 @DocsEditable |
| 152 static const int TIMEOUT_ERR = 7; | 178 static const int TIMEOUT_ERR = 7; |
| 153 | 179 |
| 180 @DomName('SQLException.TOO_LARGE_ERR') |
| 181 @DocsEditable |
| 154 static const int TOO_LARGE_ERR = 3; | 182 static const int TOO_LARGE_ERR = 3; |
| 155 | 183 |
| 184 @DomName('SQLException.UNKNOWN_ERR') |
| 185 @DocsEditable |
| 156 static const int UNKNOWN_ERR = 0; | 186 static const int UNKNOWN_ERR = 0; |
| 157 | 187 |
| 188 @DomName('SQLException.VERSION_ERR') |
| 189 @DocsEditable |
| 158 static const int VERSION_ERR = 2; | 190 static const int VERSION_ERR = 2; |
| 159 | 191 |
| 160 @DomName('SQLException.code') | 192 @DomName('SQLException.code') |
| 161 @DocsEditable | 193 @DocsEditable |
| 162 final int code; | 194 final int code; |
| 163 | 195 |
| 164 @DomName('SQLException.message') | 196 @DomName('SQLException.message') |
| 165 @DocsEditable | 197 @DocsEditable |
| 166 final String message; | 198 final String message; |
| 167 } | 199 } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // BSD-style license that can be found in the LICENSE file. | 279 // BSD-style license that can be found in the LICENSE file. |
| 248 | 280 |
| 249 | 281 |
| 250 @DocsEditable | 282 @DocsEditable |
| 251 @DomName('SQLTransactionSync') | 283 @DomName('SQLTransactionSync') |
| 252 @SupportedBrowser(SupportedBrowser.CHROME) | 284 @SupportedBrowser(SupportedBrowser.CHROME) |
| 253 @SupportedBrowser(SupportedBrowser.SAFARI) | 285 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 254 @Experimental | 286 @Experimental |
| 255 abstract class _SQLTransactionSync native "SQLTransactionSync" { | 287 abstract class _SQLTransactionSync native "SQLTransactionSync" { |
| 256 } | 288 } |
| OLD | NEW |