Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Misc. code optimizations |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sourceforge |
Files: | files | file ages | folders |
SHA1: |
bf66bbedceb0ce29bcdabccc7df156e9 |
User & Date: | rmsimpson 2005-03-02 23:10:43.000 |
Context
2005-03-04
| ||
21:29 | More performance enhancements to SQLiteCommand check-in: 8502a3ae6d user: rmsimpson tags: sourceforge | |
2005-03-02
| ||
23:10 | Misc. code optimizations check-in: bf66bbedce user: rmsimpson tags: sourceforge | |
16:00 | Release build now targets the bin directory check-in: b483cda274 user: rmsimpson tags: sourceforge | |
Changes
Changes to System.Data.SQLite/SQLite3.cs.
︙ | |||
282 283 284 285 286 287 288 | 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 | + + - + | return "TEXT"; } } } internal override int ColumnIndex(SQLiteStatement stmt, string columnName) { int x = ColumnCount(stmt); |
︙ |
Changes to System.Data.SQLite/SQLiteCommand.cs.
︙ | |||
15 16 17 18 19 20 21 | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | - + | /// <summary> /// SQLite implementation of DbCommand. /// </summary> public sealed class SQLiteCommand : DbCommand { private string _commandText; private SQLiteConnection _cnn; |
︙ | |||
66 67 68 69 70 71 72 | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | - + | { Initialize(null, cnn); } private void Initialize(string strSql, SQLiteConnection cnn) { _statementList = null; |
︙ | |||
88 89 90 91 92 93 94 95 96 97 98 99 100 | 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | + + + - + | /// </summary> /// <param name="disposing"></param> protected override void Dispose(bool disposing) { base.Dispose(disposing); ClearCommands(); _parameterCollection.Clear(); _cnn = null; _commandText = null; } internal void ClearCommands() { if (_statementList == null) return; int x = _statementList.Length; |
︙ | |||
150 151 152 153 154 155 156 | 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | - + | { return _commandText; } set { if (_commandText == value) return; |
︙ | |||
220 221 222 223 224 225 226 | 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | - + | { get { return _cnn; } set { |
︙ | |||
276 277 278 279 280 281 282 | 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 | - + + + - + - + - + - + | /// <summary> /// /// </summary> /// <param name="behavior"></param> /// <returns></returns> protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior) { |
︙ |
Changes to System.Data.SQLite/SQLiteConnection.cs.
︙ | |||
254 255 256 257 258 259 260 | 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 | + - + | /// <summary> /// When the database connection is closed, all commands linked to this connection are automatically reset. /// </summary> public override void Close() { if (_sql != null) { int x = _commandList.Count; |
︙ | |||
380 381 382 383 384 385 386 387 | 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 | + - + | List<KeyValuePair<string, string>> ls = new List<KeyValuePair<string, string>>(); // First split into semi-colon delimited values. The Split() function of SQLiteBase accounts for and properly // skips semi-colons in quoted strings string[] arParts = SQLiteConvert.Split(s, ';'); string[] arPiece; int x = arParts.Length; // For each semi-colon piece, split into key and value pairs by the presence of the = sign |
︙ | |||
407 408 409 410 411 412 413 | 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 | + - + | /// </summary> /// <param name="opts">The Key/Value pair array to look in</param> /// <param name="key">The key to find</param> /// <param name="defValue">The default value to return if the key is not found</param> /// <returns>The value corresponding to the specified key, or the default value if not found.</returns> internal string FindKey(KeyValuePair<string, string>[] opts, string key, string defValue) { int x = opts.Length; |
︙ |
Changes to System.Data.SQLite/SQLiteDataReader.cs.
︙ | |||
90 91 92 93 94 95 96 97 98 99 100 101 102 103 | 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | + + | } // If the datareader's behavior includes closing the connection, then do so here. if ((_commandBehavior & CommandBehavior.CloseConnection) != 0) _command.Connection.Close(); _command = null; _activeStatement = null; _fieldTypeArray = null; } /// <summary> /// Disposes the datareader. Calls Close() to ensure everything is cleaned up. /// </summary> public override void Dispose() { |
︙ | |||
464 465 466 467 468 469 470 | 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 | - + | // Create a new command based on the original. The only difference being that this new command returns // fully-qualified Database.Table.Column column names because of the above pragma using (SQLiteCommand cmd = new SQLiteCommand(_activeStatement._sqlStatement, cnn)) { using (DbDataReader rd = cmd.ExecuteReader()) { // No need to Read() from this reader, we just want the column names |
︙ |
Changes to System.Data.SQLite/SQLiteFunction.cs.
︙ | |||
363 364 365 366 367 368 369 | 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 | - - - - - + + + + + + + | /// Disposes of any active contextData variables that were not automatically cleaned up. Sometimes this can happen if /// someone closes the connection while a DataReader is open. /// </summary> public void Dispose() { Dispose(true); |
︙ | |||
492 493 494 495 496 497 498 | 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 | + - + | /// </remarks> /// <param name="sqlbase">The base SQLite connection object</param> /// <param name="ar">An array of user-defined functions for this object</param> internal static void UnbindFunctions(SQLiteBase sqlbase, SQLiteFunction[] ar) { if (ar == null) return; int x = ar.Length; |
Changes to System.Data.SQLite/SQLiteParameterCollection.cs.
︙ | |||
151 152 153 154 155 156 157 | 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | + - + + - + | /// <summary> /// /// </summary> /// <param name="values"></param> public void AddRange(SQLiteParameter[] values) { int x = values.Length; |
︙ | |||
252 253 254 255 256 257 258 | 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 | + - + | /// <summary> /// /// </summary> /// <param name="parameterName"></param> /// <returns></returns> public override int IndexOf(string parameterName) { int x = _parameterList.Count; |
︙ | |||
360 361 362 363 364 365 366 | 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 | - + + | s = p.ParameterName; if (s == null) { s = String.Format(";{0}", nUnnamed); nUnnamed++; } |
Changes to System.Data.SQLite/SQLiteStatement.cs.
︙ | |||
56 57 58 59 60 61 62 | 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | + - + + + | } } internal void MapParameter(string s, SQLiteParameter p) { if (_paramNames == null) return; int x = _paramNames.Length; |
︙ |
Changes to System.Data.SQLite/SQLiteTransaction.cs.
︙ | |||
63 64 65 66 67 68 69 70 71 72 73 74 75 76 | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | + + + | /// <summary> /// Disposes the transaction. If it is currently active, any changes are rolled back. /// </summary> public override void Dispose() { if (_cnn != null) Rollback(); _cnn = null; GC.SuppressFinalize(this); } /// <summary> /// Gets the isolation level of the transaction. SQLite does not support isolation levels, so this always returns Unspecified. /// </summary> public override IsolationLevel IsolationLevel |
︙ |
Changes to bin/SQLite.Interop.dll.
cannot compute difference between binary files
Changes to bin/System.Data.SQLite.dll.
cannot compute difference between binary files
Changes to bin/test.exe.
cannot compute difference between binary files