Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | 1.0.18 |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sourceforge |
Files: | files | file ages | folders |
SHA1: |
2463d43a97693109d975e3daea9ab309 |
User & Date: | rmsimpson 2005-09-01 06:04:59.000 |
Context
2005-09-01
| ||
06:07 | Re-merge with 3.2.5 check-in: bd1d21e4b3 user: rmsimpson tags: sourceforge | |
06:04 | 1.0.18 check-in: 2463d43a97 user: rmsimpson tags: sourceforge | |
2005-08-31
| ||
22:00 | Minor tweaks check-in: 409cdff9bc user: rmsimpson tags: sourceforge | |
Changes
Changes to Doc/SQLite.NET.chm.
cannot compute difference between binary files
Changes to SQLite.Designer/AssemblyInfo.cs.
︙ | ︙ | |||
28 29 30 31 32 33 34 | // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: | | | | 28 29 30 31 32 33 34 35 36 37 38 39 | // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.18.0")] [assembly: AssemblyFileVersion("1.0.18.0")] [assembly:AssemblyDelaySignAttribute(false)] [assembly:AssemblyKeyFileAttribute("..\\System.Data.SQLite\\System.Data.SQLite.snk")] [assembly:AssemblyKeyNameAttribute("")] |
Changes to SQLite.Interop/SQLite.Interop.rc.
︙ | ︙ | |||
49 50 51 52 53 54 55 | ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO | | | | 49 50 51 52 53 54 55 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 | ///////////////////////////////////////////////////////////////////////////// // // Version // VS_VERSION_INFO VERSIONINFO FILEVERSION 1,0,18,0 PRODUCTVERSION 1,0,0,0 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L #else FILEFLAGS 0x0L #endif FILEOS 0x4L FILETYPE 0x2L FILESUBTYPE 0x0L BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "040904b0" BEGIN VALUE "Comments", "http://sourceforge.net/projects/sqlite-dotnet2" VALUE "FileDescription", "SQLite.NET Interop Library" VALUE "FileVersion", "1.0.18" VALUE "InternalName", "SQLite.Interop.DLL" VALUE "LegalCopyright", "Released to the public domain" VALUE "OriginalFilename", "SQLite3.DLL 3.2.5" VALUE "ProductName", "SQLite.NET" VALUE "ProductVersion", "1.0" END END |
︙ | ︙ |
Changes to SQLite.Interop/SQLite.Interop.vcproj.
︙ | ︙ | |||
26 27 28 29 30 31 32 | <Configurations> <Configuration Name="Release|Win32" OutputDirectory="$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)" ConfigurationType="2" CharacterSet="2" | | | | | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | <Configurations> <Configuration Name="Release|Win32" OutputDirectory="$(ConfigurationName)" IntermediateDirectory="$(ConfigurationName)" ConfigurationType="2" CharacterSet="2" ManagedExtensions="0" WholeProgramOptimization="1" > <Tool Name="VCPreBuildEventTool" Description="Building SQLite netmodule ..." CommandLine="cd ..\System.Data.SQLite
csc /target:module /out:..\SQLite.Interop\SQlite.netmodule /o SQLite3.cs SQLite3_UTF16.cs SQLiteBase.cs SQLiteCommand.cs SQLiteCommandBuilder.cs SQLiteConnection.cs SQLiteConnectionStringBuilder.cs SQLiteConvert.cs SQLiteDataAdapter.cs SQLiteDataReader.cs SQLiteException.cs SQLiteFactory.cs SQLiteFunction.cs SQLiteFunctionAttribute.cs SQLiteParameter.cs SQLiteParameterCollection.cs SQLiteStatement.cs SQLiteTransaction.cs UnsafeNativeMethods.cs AssemblyInfo.cs
cd ..\SQLite.Interop
" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> <Tool Name="VCWebServiceProxyGeneratorTool" /> <Tool Name="VCMIDLTool" /> <Tool Name="VCCLCompilerTool" AdditionalOptions="/GS-" Optimization="3" FavorSizeOrSpeed="1" PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_DEPRECATE;NO_TCL;THREADSAFE" StringPooling="true" RuntimeLibrary="0" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" |
︙ | ︙ | |||
113 114 115 116 117 118 119 | ConfigurationType="2" CharacterSet="1" WholeProgramOptimization="0" > <Tool Name="VCPreBuildEventTool" Description="Building SQLite netmodule ..." | | | 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | ConfigurationType="2" CharacterSet="1" WholeProgramOptimization="0" > <Tool Name="VCPreBuildEventTool" Description="Building SQLite netmodule ..." CommandLine="cd ..\System.Data.SQLite
csc /target:module /out:..\SQLite.Interop\SQlite.netmodule /o SQLite3.cs SQLite3_UTF16.cs SQLiteBase.cs SQLiteCommand.cs SQLiteCommandBuilder.cs SQLiteConnection.cs SQLiteConnectionStringBuilder.cs SQLiteConvert.cs SQLiteDataAdapter.cs SQLiteDataReader.cs SQLiteException.cs SQLiteFactory.cs SQLiteFunction.cs SQLiteFunctionAttribute.cs SQLiteParameter.cs SQLiteParameterCollection.cs SQLiteStatement.cs SQLiteTransaction.cs UnsafeNativeMethods.cs AssemblyInfo.cs
cd ..\SQLite.Interop
" ExcludedFromBuild="true" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" |
︙ | ︙ | |||
152 153 154 155 156 157 158 | <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" IgnoreImportLibrary="true" AdditionalOptions=" /subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE" | | > | 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" IgnoreImportLibrary="true" AdditionalOptions=" /subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE" OutputFile="$(SolutionDir)bin/CompactFramework/$(ProjectName).DLL" IgnoreDefaultLibraryNames="oldnames.lib" ModuleDefinitionFile="src\sqlite3.def" AddModuleNamesToAssembly="" GenerateDebugInformation="true" ImportLibrary="$(TargetDir)$(TargetName).lib" /> <Tool Name="VCALinkTool" /> <Tool |
︙ | ︙ | |||
188 189 190 191 192 193 194 | </Configuration> <Configuration Name="Release|Itanium" OutputDirectory="ia64\$(ConfigurationName)" IntermediateDirectory="ia64\$(ConfigurationName)" ConfigurationType="2" CharacterSet="2" | | | | 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | </Configuration> <Configuration Name="Release|Itanium" OutputDirectory="ia64\$(ConfigurationName)" IntermediateDirectory="ia64\$(ConfigurationName)" ConfigurationType="2" CharacterSet="2" ManagedExtensions="0" WholeProgramOptimization="1" > <Tool Name="VCPreBuildEventTool" Description="Building SQLite netmodule ..." CommandLine="cd ..\System.Data.SQLite
csc /target:module /out:..\SQLite.Interop\SQlite.netmodule /o SQLite3.cs SQLite3_UTF16.cs SQLiteBase.cs SQLiteCommand.cs SQLiteCommandBuilder.cs SQLiteConnection.cs SQLiteConnectionStringBuilder.cs SQLiteConvert.cs SQLiteDataAdapter.cs SQLiteDataReader.cs SQLiteException.cs SQLiteFactory.cs SQLiteFunction.cs SQLiteFunctionAttribute.cs SQLiteParameter.cs SQLiteParameterCollection.cs SQLiteStatement.cs SQLiteTransaction.cs UnsafeNativeMethods.cs AssemblyInfo.cs
cd ..\SQLite.Interop
" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> |
︙ | ︙ | |||
216 217 218 219 220 221 222 | <Tool Name="VCCLCompilerTool" AdditionalOptions="/GS-" Optimization="3" FavorSizeOrSpeed="1" PreprocessorDefinitions="NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_DEPRECATE;NO_TCL;THREADSAFE;WIN64" StringPooling="true" | | | 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 | <Tool Name="VCCLCompilerTool" AdditionalOptions="/GS-" Optimization="3" FavorSizeOrSpeed="1" PreprocessorDefinitions="NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_DEPRECATE;NO_TCL;THREADSAFE;WIN64" StringPooling="true" RuntimeLibrary="0" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" |
︙ | ︙ | |||
271 272 273 274 275 276 277 | </Configuration> <Configuration Name="Release|x64" OutputDirectory="x64\$(ConfigurationName)" IntermediateDirectory="x64\$(ConfigurationName)" ConfigurationType="2" CharacterSet="2" | | | | 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 | </Configuration> <Configuration Name="Release|x64" OutputDirectory="x64\$(ConfigurationName)" IntermediateDirectory="x64\$(ConfigurationName)" ConfigurationType="2" CharacterSet="2" ManagedExtensions="0" WholeProgramOptimization="1" > <Tool Name="VCPreBuildEventTool" Description="Building SQLite netmodule ..." CommandLine="cd ..\System.Data.SQLite
csc /target:module /out:..\SQLite.Interop\SQlite.netmodule /o SQLite3.cs SQLite3_UTF16.cs SQLiteBase.cs SQLiteCommand.cs SQLiteCommandBuilder.cs SQLiteConnection.cs SQLiteConnectionStringBuilder.cs SQLiteConvert.cs SQLiteDataAdapter.cs SQLiteDataReader.cs SQLiteException.cs SQLiteFactory.cs SQLiteFunction.cs SQLiteFunctionAttribute.cs SQLiteParameter.cs SQLiteParameterCollection.cs SQLiteStatement.cs SQLiteTransaction.cs UnsafeNativeMethods.cs AssemblyInfo.cs
cd ..\SQLite.Interop
" /> <Tool Name="VCCustomBuildTool" /> <Tool Name="VCXMLDataGeneratorTool" /> |
︙ | ︙ | |||
299 300 301 302 303 304 305 | <Tool Name="VCCLCompilerTool" AdditionalOptions="/GS-" Optimization="3" FavorSizeOrSpeed="1" PreprocessorDefinitions="NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_DEPRECATE;NO_TCL;THREADSAFE;WIN64" StringPooling="true" | | | 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 | <Tool Name="VCCLCompilerTool" AdditionalOptions="/GS-" Optimization="3" FavorSizeOrSpeed="1" PreprocessorDefinitions="NDEBUG;_WINDOWS;_USRDLL;_CRT_SECURE_NO_DEPRECATE;NO_TCL;THREADSAFE;WIN64" StringPooling="true" RuntimeLibrary="0" DebugInformationFormat="3" /> <Tool Name="VCManagedResourceCompilerTool" /> <Tool Name="VCResourceCompilerTool" |
︙ | ︙ | |||
360 361 362 363 364 365 366 | Name="Source Files" Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > <File RelativePath=".\src\alter.c" > | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 361 362 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 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 | Name="Source Files" Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx" UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}" > <File RelativePath=".\src\alter.c" > </File> <File RelativePath=".\src\analyze.c" > </File> <File RelativePath=".\src\attach.c" > </File> <File RelativePath=".\src\auth.c" > </File> <File RelativePath=".\src\btree.c" > </File> <File RelativePath=".\src\build.c" > </File> <File RelativePath=".\src\callback.c" > </File> <File RelativePath=".\src\complete.c" > </File> <File RelativePath=".\src\date.c" > </File> <File RelativePath=".\src\delete.c" > </File> <File RelativePath=".\src\expr.c" > </File> <File RelativePath=".\src\func.c" > </File> <File RelativePath=".\src\hash.c" > </File> <File RelativePath=".\src\insert.c" > </File> <File RelativePath=".\src\legacy.c" > </File> <File RelativePath=".\src\main.c" > </File> <File RelativePath=".\src\opcodes.c" > </File> <File RelativePath=".\src\os_win.c" > </File> <File RelativePath=".\src\os_wince.c" > </File> <File RelativePath=".\src\pager.c" > </File> <File RelativePath=".\src\parse.c" > </File> <File RelativePath=".\src\pragma.c" > </File> <File RelativePath=".\src\prepare.c" > </File> <File RelativePath=".\src\printf.c" > </File> <File RelativePath=".\src\random.c" > </File> <File RelativePath=".\src\select.c" > </File> <File RelativePath=".\src\table.c" > </File> <File RelativePath=".\src\tokenize.c" > </File> <File RelativePath=".\src\trigger.c" > </File> <File RelativePath=".\src\update.c" > </File> <File RelativePath=".\src\utf.c" > </File> <File RelativePath=".\src\util.c" > </File> <File RelativePath=".\src\vacuum.c" > </File> <File RelativePath=".\src\vdbe.c" > </File> <File RelativePath=".\src\vdbeapi.c" > </File> <File RelativePath=".\src\vdbeaux.c" > </File> <File RelativePath=".\src\vdbefifo.c" > </File> <File RelativePath=".\src\vdbemem.c" > </File> <File RelativePath=".\src\where.c" > </File> </Filter> <Filter Name="Header Files" Filter="h;hpp;hxx;hm;inl;inc;xsd" UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}" > |
︙ | ︙ |
Changes to SQLite.Interop/interop.h.
︙ | ︙ | |||
160 161 162 163 164 165 166 167 168 169 170 171 172 | { Sleep(milliseconds); } __declspec(dllexport) int sqlite3_encryptfile(const wchar_t *pwszFilename) { HMODULE hMod = LoadLibrary(_T("ADVAPI32")); if (hMod == NULL) { SetLastError(ERROR_NOT_SUPPORTED); return 0; } | > > > | | > > > | | > > > | | > > > > > | | < | | 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 | { Sleep(milliseconds); } __declspec(dllexport) int sqlite3_encryptfile(const wchar_t *pwszFilename) { HMODULE hMod = LoadLibrary(_T("ADVAPI32")); ENCRYPTFILEW pfunc; int n; if (hMod == NULL) { SetLastError(ERROR_NOT_SUPPORTED); return 0; } pfunc = (ENCRYPTFILEW)GetProcAddress(hMod, _T("EncryptFileW")); if (pfunc == NULL) { SetLastError(ERROR_NOT_SUPPORTED); return 0; } n = pfunc(pwszFilename); FreeLibrary(hMod); return n; } __declspec(dllexport) int sqlite3_decryptfile(const wchar_t *pwszFilename) { HMODULE hMod = LoadLibrary(_T("ADVAPI32")); DECRYPTFILEW pfunc; int n; if (hMod == NULL) { SetLastError(ERROR_NOT_SUPPORTED); return 0; } pfunc = (DECRYPTFILEW)GetProcAddress(hMod, _T("DecryptFileW")); if (pfunc == NULL) { SetLastError(ERROR_NOT_SUPPORTED); return 0; } n = pfunc(pwszFilename, 0); FreeLibrary(hMod); return n; } __declspec(dllexport) unsigned long sqlite3_encryptedstatus(const wchar_t *pwszFilename, unsigned long *pdwStatus) { HMODULE hMod = LoadLibrary(_T("ADVAPI32")); ENCRYPTEDSTATUSW pfunc; int n; if (hMod == NULL) { SetLastError(ERROR_NOT_SUPPORTED); return 0; } pfunc = (ENCRYPTEDSTATUSW)GetProcAddress(hMod, _T("FileEncryptionStatusW")); if (pfunc == NULL) { SetLastError(ERROR_NOT_SUPPORTED); return 0; } n = pfunc(pwszFilename, pdwStatus); FreeLibrary(hMod); return n; } int SetCompression(const wchar_t *pwszFilename, unsigned short ufLevel) { #ifdef FSCTL_SET_COMPRESSION HMODULE hMod = GetModuleHandle(_T("KERNEL32")); CREATEFILEW pfunc; HANDLE hFile; unsigned long dw = 0; int n; if (hMod == NULL) { SetLastError(ERROR_NOT_SUPPORTED); return 0; } pfunc = (CREATEFILEW)GetProcAddress(hMod, _T("CreateFileW")); if (pfunc == NULL) { SetLastError(ERROR_NOT_SUPPORTED); return 0; } hFile = pfunc(pwszFilename, GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (hFile == NULL) return 0; n = DeviceIoControl(hFile, FSCTL_SET_COMPRESSION, &ufLevel, sizeof(ufLevel), NULL, 0, &dw, NULL); CloseHandle(hFile); return n; #else SetLastError(ERROR_NOT_SUPPORTED); return 0; |
︙ | ︙ |
Changes to System.Data.SQLite/AssemblyInfo.cs.
︙ | ︙ | |||
35 36 37 38 39 40 41 | // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: | | | | 35 36 37 38 39 40 41 42 43 44 45 | // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: [assembly: AssemblyVersion("1.0.18.0")] #if !PLATFORM_COMPACTFRAMEWORK [assembly: AssemblyFileVersion("1.0.18.0")] #endif |
Changes to System.Data.SQLite/SQLiteConnection.cs.
︙ | ︙ | |||
218 219 220 221 222 223 224 | Close(); } /// <summary> /// Creates a database file. This just creates a zero-byte file which SQLite /// will turn into a database when the file is opened properly. /// </summary> | | | | | | | | | | | | | | | | | | | | 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 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 | Close(); } /// <summary> /// Creates a database file. This just creates a zero-byte file which SQLite /// will turn into a database when the file is opened properly. /// </summary> /// <param name="databaseFileName">The file to create</param> static public void CreateFile(string databaseFileName) { IO.FileStream fs = IO.File.Create(databaseFileName); fs.Close(); } /// <summary> /// On NTFS volumes, this function turns on the compression attribute for the given file. /// It must not be open or referenced at the time of the function call. /// </summary> /// <param name="databaseFileName">The file to compress</param> static public void CompressFile(string databaseFileName) { UnsafeNativeMethods.sqlite3_compressfile(databaseFileName); } /// <summary> /// On NTFS volumes, this function removes the compression attribute for the given file. /// It must not be open or referenced at the time of the function call. /// </summary> /// <param name="databaseFileName">The file to decompress</param> static public void DecompressFile(string databaseFileName) { UnsafeNativeMethods.sqlite3_decompressfile(databaseFileName); } /// <summary> /// On NTFS volumes, this function turns on the EFS (Encrypted File System) attribute /// for the given file, which causes the file to be encrypted. /// For a full description of EFS, see the MSDN documentation. /// </summary> /// <remarks> /// Requires Win2K and above, plus a valid EFS certificate (which is beyond the scope /// of this function description). /// </remarks> /// <param name="databaseFileName">The file to encrypt</param> static public void EncryptFile(string databaseFileName) { int n = UnsafeNativeMethods.sqlite3_encryptfile(databaseFileName); if (n == 0) throw new System.ComponentModel.Win32Exception(); } /// <summary> /// On NTFS volumes, this function removes the encryption attribute from the file, /// causing the file to be decrypted. See the MSDN documentation for full details on /// EFS (Encrypted File System). /// </summary> /// <remarks> /// Requires Win2K and above, plus a valid EFS certificate (which is beyond the scope /// of this function description). /// </remarks> /// <param name="databaseFileName">The file to decrypt</param> static public void DecryptFile(string databaseFileName) { int n = UnsafeNativeMethods.sqlite3_decryptfile(databaseFileName); if (n == 0) throw new System.ComponentModel.Win32Exception(); } /// <summary> /// Returns true if the file is encrypted, or false otherwise. /// </summary> /// <remarks> /// Requires Win2K and above, plus a valid EFS certificate (which is beyond the scope /// of this function description). /// </remarks> /// <param name="databaseFileName">The file to check</param> /// <returns>true if the file is encrypted</returns> static public bool IsEncrypted(string databaseFileName) { int status; int n = UnsafeNativeMethods.sqlite3_encryptedstatus(databaseFileName, out status); if (n == 0) throw new System.ComponentModel.Win32Exception(); return (status == 1); } /// <summary> /// Raises the state change event when the state of the connection changes |
︙ | ︙ | |||
990 991 992 993 994 995 996 | using (SQLiteCommand cmdTable = new SQLiteCommand(String.Format(CultureInfo.CurrentCulture, "SELECT * FROM [{0}]", rdTables.GetString(2)), this)) { using (SQLiteDataReader rdTable = cmdTable.ExecuteReader(CommandBehavior.SchemaOnly)) { tblSchema = rdTable.GetSchemaTable(); foreach (DataRow schemaRow in tblSchema.Rows) { | | | 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 | using (SQLiteCommand cmdTable = new SQLiteCommand(String.Format(CultureInfo.CurrentCulture, "SELECT * FROM [{0}]", rdTables.GetString(2)), this)) { using (SQLiteDataReader rdTable = cmdTable.ExecuteReader(CommandBehavior.SchemaOnly)) { tblSchema = rdTable.GetSchemaTable(); foreach (DataRow schemaRow in tblSchema.Rows) { if (Convert.ToBoolean(schemaRow[SchemaTableColumn.IsKey], CultureInfo.CurrentCulture) == true) { row = tbl.NewRow(); row["TABLE_CATALOG"] = strCatalog; row["TABLE_NAME"] = rdTables.GetString(2); row["INDEX_CATALOG"] = strCatalog; row["INDEX_NAME"] = String.Format(CultureInfo.CurrentCulture, "PK_{0}_{1}", rdTables.GetString(2), schemaRow[SchemaTableColumn.BaseColumnName]); row["PRIMARY_KEY"] = true; |
︙ | ︙ | |||
1498 1499 1500 1501 1502 1503 1504 | using (SQLiteCommand cmdTable = new SQLiteCommand(String.Format(CultureInfo.CurrentCulture, "SELECT * FROM [{0}]", rdTables.GetString(2)), this)) { using (SQLiteDataReader rdTable = cmdTable.ExecuteReader(CommandBehavior.SchemaOnly)) { tblSchema = rdTable.GetSchemaTable(); foreach (DataRow schemaRow in tblSchema.Rows) { | | | 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 | using (SQLiteCommand cmdTable = new SQLiteCommand(String.Format(CultureInfo.CurrentCulture, "SELECT * FROM [{0}]", rdTables.GetString(2)), this)) { using (SQLiteDataReader rdTable = cmdTable.ExecuteReader(CommandBehavior.SchemaOnly)) { tblSchema = rdTable.GetSchemaTable(); foreach (DataRow schemaRow in tblSchema.Rows) { if (Convert.ToBoolean(schemaRow[SchemaTableColumn.IsKey], CultureInfo.CurrentCulture) == true) { row = tbl.NewRow(); row["CONSTRAINT_CATALOG"] = strCatalog; row["CONSTRAINT_NAME"] = String.Format(CultureInfo.CurrentCulture, "PK_{0}_{1}", rdTables.GetString(2), schemaRow[SchemaTableColumn.BaseColumnName]); row["TABLE_CATALOG"] = strCatalog; row["TABLE_NAME"] = rdTables.GetString(2); row["COLUMN_NAME"] = schemaRow[SchemaTableColumn.BaseColumnName]; |
︙ | ︙ |
Changes to bin/CompactFramework/SQLite.Interop.dll.
cannot compute difference between binary files
Changes to bin/CompactFramework/System.Data.SQLite.dll.
cannot compute difference between binary files
Changes to bin/CompactFramework/testce.exe.
cannot compute difference between binary files
Changes to bin/Designer/Install.vbs.
|
| | | 1 2 3 4 5 6 7 8 | Const SQLiteVersion = "1.0.18.0" Main Sub Main() Dim WshShell Set WshShell = WScript.CreateObject("WScript.Shell") |
︙ | ︙ |
Changes to bin/Designer/SQLite.Designer.dll.
cannot compute difference between binary files
Changes to bin/System.Data.SQLite.dll.
cannot compute difference between binary files
Changes to bin/itanium/System.Data.SQLite.DLL.
cannot compute difference between binary files
Changes to bin/test.exe.
cannot compute difference between binary files
Changes to bin/x64/System.Data.SQLite.DLL.
cannot compute difference between binary files
Changes to readme.htm.
1 2 3 4 5 6 7 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> ADO.NET 2.0 SQLite Data Provider<br> | | | | > > > > > > | | | > > > > > > | < | | | | | | | | | | | | | | | > | > > > > > > | > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 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 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> ADO.NET 2.0 SQLite Data Provider<br> Version 1.0.18- Sep 1, 2005<br> Interop using SQLite 3.2.5<br> Written by Robert Simpson (<a href="mailto:robert@blackcastlesoft.com">robert@blackcastlesoft.com</a>)<br> Released to the public domain, use at your own risk!<br> <br> This provider was written and tested using the Visual Studio 2005 Beta 2 release.<br> <br> The latest version can be downloaded <a href="http://sourceforge.net/projects/sqlite-dotnet2"> here</a> <br> <br> <b></b> <h2> <b>Features:</b><br> </h2> <UL> <LI> Supports the Full and Compact .NET Framework. <LI> On the Compact Framework, it is faster than the newly-introduced Sql Server Mobile, often more than 10x faster at inserts/updates. SQLite databases are also a fraction of the size of Sql Mobile databases. <LI> Full Visual Studio 2005 Design-Time Support. You can add a SQLite database to the Servers list, design queries with the Query Designer, drag-and-drop tables onto a Typed DataSet, etc. <LI> Single file redistributable for the full .net framework (Compact Framework requires 2 binaries). The core sqlite3 codebase and the ADO.NET wrapper are combined into one multi-module assembly. <LI> Native 64-bit multi-module assemblies for Itanium and X64 processors. <LI> DbProviderFactory support. <LI> Full support for ATTACH'ed databases. Exposed as <I>Catalogs</I> in the schema. When cloning a connection, all attached databases are automatically re-attached to the new connection. <LI> DbConnection.GetSchema(...) support includes the <I>MetaDataCollections</I>, <I>DataSourceInformation</I>, <I>Columns</I>, <I>Tables</I>, <I>Views, ViewColumns, </I><I>Catalogs, </I><I>Indexes, IndexColumns </I>and <EM>ForeignKeys</EM> keywords. <LI> Enhanced DbDataReader.GetSchemaTable() functionality returns catalog, namespace and detailed schema information even for complex queries. <LI> Named and unnamed parameters. <LI> Full UTF-8 and UTF-16 support, each with optimized pipelines into the native database core. <LI> Multiple simultaneous DataReaders (one DataReader per Command however). <LI> Full support for user-defined scalar and aggregate functions, encapsulated into an easy-to-use base class in which only a couple of overrides are necessary to implement new SQL functions. <LI> Full support for user-defined collating sequences, every bit as simple to implement as user-defined functions and uses the same base class. <LI> Create and encrypt databases using Win2K+ Encrypting File System (EFS). Supports creating NTFS compressed database files. <LI> Full source for the entire engine and wrapper. No copyrights. Public Domain. 100% free. If you want to know if you can use it in your commercial project, please read the previous sentence again -- only slower and sound out the words this time. </LI> </UL> <strong></strong> <h2> <strong>Design-Time Support (new as of 1.0.14)</strong></h2> <P>Until an installer is created, the steps for registering the provider for design-time support are:</P> <OL> <LI> |
︙ | ︙ | |||
86 87 88 89 90 91 92 | either your application's app.config or the system's machine.config located in the %SystemRoot%\Microsoft.Net\Framework\v2.xxxx\Config folder:<br> <br> <pre> <configuration> <system.data> <DbProviderFactories> | | | 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | either your application's app.config or the system's machine.config located in the %SystemRoot%\Microsoft.Net\Framework\v2.xxxx\Config folder:<br> <br> <pre> <configuration> <system.data> <DbProviderFactories> <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite"<BR > type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite, Version=1.0.18.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" /> </DbProviderFactories> </system.data> </configuration> </pre> <P>If you choose to install the Visual Studio Design-Time support for SQLite, you must not add the above XML to your app.config. The installer will have already added it to your machine's machine.config file.</P> |
︙ | ︙ | |||
154 155 156 157 158 159 160 | <li> <FONT color="silver">Compile it. </FONT> </li> </ol> <b></b> <h2> <b>Version History</b></h2> | > > > > > > | > | | | > | | | | > | > | | | > > | > > | | | | | | > > | | | | > > > > > > > > > > | | | | > | | | | | > | | | > | | | > | | | > > > | | | | > | | | | | | > | | | > | | | | > | | | > | | | > | | < | | | | | | | | | | | | < | | | > | | | | | | | | | | | | | < | | | > | | | | | | > | | | > | | | | | | | | | | | | | | > | 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 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 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 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 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 | <li> <FONT color="silver">Compile it. </FONT> </li> </ol> <b></b> <h2> <b>Version History</b></h2> <p><b>1.0.18 - September 1, 2005</b></p> <UL> <li> Added type-specific method calls when using the various SQLite classes that would've normally returned a a generic Db base class, which aligns the code better with the Microsoft-supplied data providers.</li></UL> <p><b>1.0.17 - August 26, 2005</b></p> <ul> <li> Code merge with SQLite 3.2.5 <li> Added Itanium and x64 build settings to the project (needs testing) <li> Bugfixes and enhancements to several schema types <li> Additional design-time support to include index and foreign key enumerations. Requires re-registering the designer using INSTALL.CMD. The new designer code now allows the VS query designer and typed datasets to automatically link up foreign keys, use indexes, and automatically generate relationships from the schema.<li> Additional static methods on SQLiteConnection to create a database file, encrypt a file using the Encrypted File System (EFS) on NTFS (requires NT 2K or above) and NTFS file compression</li> </ul> <p><b>1.0.16 - August 24, 2005</b></p> <ul> <li> Code merge with SQLite 3.2.4 with the large delete bugfix in CVS (which will become 3.2.5 soon) <li> Added new GetSchema() types: IndexColumns, ViewColumns, ForeignKeys</li> </ul> <p><b>1.0.15 - August 22, 2005</b><br> </p> <ul> <li> Code merge with SQLite 3.2.3 <LI> Minor updates for better design-time experience. More design-time code to follow in subsequent releases.</LI> </ul> <p><b>1.0.14 - August 16, 2005</b><br> </p> <ul> <li> Fixed a bug in the SQLiteDataAdapter due to insufficient implementation of the class. The RowUpdating and RowUpdated events are now properly implemented, but unfortunately inserting and updating data in a DataTable or DataSet is now much slower. This is the proper design however, so the changes are here to stay. <LI> Lots of schema changes to support Visual Studio's Data Designer architecture.<li>Added Designer support for the provider. It's not 100%, but you can design queries, add typed datasets and perform quite a number of tasks all within Visual Studio now.</li></ul> <P><B>1.0.13 - August 8, 2005</B><BR> </P> <DIV> <UL> <LI> Fixed a named parameter bug in the base SQLite_UTF16 class, which of course only showed up when a database connection was opened using the UseUTF16Encoding=True parameter. <LI> Fixed a performance issue in SQLite_UTF16 involving string marshaling.</LI></UL> </DIV> <P><B>1.0.12 - August 5, 2005</B><BR> </P> <DIV> <UL> <LI> Full support for the Compact Framework. Each build (Debug/Release) now has a platform, either Win32 or Compact Framework. The correct projects are built accordingly. See the <A href="#redist">Distributing SQLite</A> section for information on what files need to be distributed for each platform. <LI> Modified SQLite3.Reset() and Step() functions to transparently handle timeouts while waiting on the database to become available (typically when a writer is waiting on a reader to finish, or a reader is waiting on a writer to finish). <LI> Lots of code cleanup as suggested by the Code Analyzer (FxCop). <LI> Lots of updates to the helpfile (as you can see). <LI> Statements were already prepared lazily in a SQLiteCommand, but now its even more lazy. Statements are now only prepared if the statements haven't been previously prepared and a Prepare() function is called (and the command is associated with a connection) or just prior to the command being executed. </LI></UL> </DIV> <P><B>1.0.11 - August 1, 2005</B><BR> </P> <UL> <LI> <STRONG>For everything except the Compact Framework, System.Data.SQLite.DLL is now the <EM>only</EM> DLL required to use this provider!</STRONG> The assembly is now a multi-module assembly, containing both the native SQLite3 codebase and the C# classes built on top of it. The Compact Framework version (when completed) will not be able to support this feature, so backwards compatibility with the Compact Framework has been preserved for the future. <LI> Fixed a bug in SQLiteCommand.ExecuteScalar() that caused it to stop executing commands once it obtained the first column of the first row-returning resultset. Any remaining statements after the row-returning statement was ignored. </LI> </UL> <P><B>1.0.10 - June 10, 2005</B><BR> </P> <UL> <LI> Fixed a bug in the SQLite3.cs Prepare() function that created a statement even when the SQLite engine returned a NULL pointer. Typically this occurs when multiple statements are processed and there are trailing comments at the end of the statement. <LI> Fixed a bug in SQLiteStatement.cs that retrieved parameter names for a parameterized query. SQLite's parameters are 1-based, and the function was starting at 0. This was fine when all parameters were unnamed, but for named parameters it caused the parameters to be out of whack. </LI> </UL> <P><B>1.0.09a - May 25, 2005</B><BR> </P> <UL> <LI> Fixed a broken helpfile and corrected some obsolete help remarks in SQLiteFunction.cs <LI> Added a version resource to the SQLite.Interop.DLL. </LI></UL> <P><B>1.0.09 - May 24, 2005</B><BR> </P> <UL> <LI> Code merge with the latest 3.21 version of SQLite. <LI> Removed obsolete methods and properties for Whidbey Beta 2</LI></UL> <P><B>1.0.08 Refresh - Mar 24, 2005<BR> </B> </P> <UL> <LI> Code merge with the latest 3.20 version of SQLite. <LI> Recompiled the help file to fix a build error in it. </LI> </UL> <P><B>1.0.08 - Mar 11, 2005<BR> </B> </P> <UL> <LI> Added additional #if statements to support the old beta 1 edition of VS2005. <LI> Code merged the SQLite 3.14 source. </LI> </UL> <P><B>1.0.07 - Mar 5, 2005</B><BR> </P> <UL> <LI> Made more optimizations to frequently-called functions, resulting in significant performance gains in all tests. <LI> Recompiled the binaries using the latest VS2005 February CTP, resulting in yet more significant speed gains. The 100k insert test used to take 3.5 seconds and the insertwithidentity took almost 8 seconds. With the above two changes, those tests are now executing in 1.9 and 4.9 seconds respectively.</LI></UL> <P><B>1.0.06 - Mar 1, 2005<BR> </B> </P> <UL> <LI> Speed-ups to SQLiteDataReader. It was interop'ing unnecessarily every time it tried to fetch a field due to a logic error. <LI> Changed/Added some code to SQLiteConvert's internal DbType, Type and TypeAffinity functions. <LI> Fixed the SQLiteDataReader to obey the flags set in the optional CommandBehavior flag from SQLiteCommand.ExecuteReader(). <LI> Changed the default page size to 1024 to reflect the defaults of SQLite. Ignores the "Page Size" connection string option for memory databases, as tests revealed that changing it resulted in memory corruption errors. <LI> Performance enhancements to the SQLiteCommand and SQLiteStatement classes which reduced the 100,000 row insert execution time as well as the various Function execution times significantly. </LI> </UL> <P><B>1.0.05 - Feb 25, 2005</B> </P> <UL> <LI> Fixed the SQLite3 C# class step/reset functions to accomodate schema changes that invalidate a prepared statement. Statements are recompiled transparently. <LI> Moved all native DLL declarations to an UnsafeNativeMethods class. <LI> Split several classes into their own modules for readability. <LI> Renamed many internal variables, reviewed access to variables marked as internal and altered their protection levels accordingly. <LI> Due to the presence of the altered sqlite3 codebase and so many added interop functions, I decided to rename the sqlite3 C project and the DLL to SQLite.Interop.DLL. This is the same core sqlite3 codebase but designed specifically for this ADO.NET provider. This eliminates any possibility of someone dropping another build of sqlite3.dll into the system and rendering the provider inoperable. In the future if the folks at sqlite.org finally introduce a method of retrieving column usage for an arbitrary prepared statement, I'll retool this library to be a lightweight function call wrapper around the core binary distribution. <LI> Added [SuppressUnmanagedCodeSecurity] attribute to the UnsafeNativeMethods class which brings VS2005 November CTP execution speeds inline with the December CTP. <LI> Added a <B>bin</B> directory to the project root where pre-compiled binaries can be found. <LI> Added a <B>doc</B> directory where preliminary documentation on the class library can be found. <LI> Documented a lot more of the classes internally. </LI> </UL> <P><B>1.0.04 - Feb 24, 2005</B> </P> <UL> <LI> Removed the SQLiteContext class and revamped the way UserFunctions work to simplify the imlementation. <LI> Fixed a counting bug in the TestCases class, specifically in the function tests where I wasn't resetting the counter and it was consequently reporting intrinsic and raw select calls as being much much faster than they actually were. The numbers are now much closer to what I expected for performance, with .NET user-functions still being the slowest, but only by a small margin. <LI> Small performance tweaks to SQLiteDataReader. <LI> Added PageSize to the SQLiteConnectionStringBuilder and subsequently to the SQLiteConnection <LI> Added a PRAGMA encoding=XXX execution statement to the SQLiteConnection after opening a connection. </LI> </UL> <P><B>1.0.03 - Feb 23, 2005</B> </P> <UL> <LI> Fixed up SQLiteCommandBuilder to correct implementation errors, which resulted in an enormous performance boost in the InsertMany test. 10,000 row insert that executed in 1500ms now executes in 500ms. <LI> Fixed several errors in the SQLite3_UTF16 class. ToString() was working incorrectly and the Open() method failed to register user defined functions and collations. <LI> Fixed a bug in SQLiteCommand.ClearCommands() whereby only the first statement was being properly cleaned up. <LI> Fixed a bug in SQLiteDataReader whereby calling NextResult() would not properly reset the previously-executed command in the sequence. <LI> Added an InsertManyWithIdentityFetch test, which appends a select clause to populate the ID of the last inserted row into the InsertCommand, demonstrating ADO.NET's ability to auto-fetch identity columns on insert. </LI> </UL> <P><B>1.0.02 - Feb 21, 2005</B></P> <UL> <LI> Tweaks to the xxx_interop functions that return char *'s, so they also return the length. Saves an interop call to get the UTF-8 string length during conversion to a .NET string. <LI> Reworked the whole interop.c thing into interop.h and reduced the code required to merge the main sqlite3 codebase. <LI> Added support for user-defined collations. </LI> </UL> </body> </html> |