Commit Graph
30 Commits
Author SHA1 Message Date
Kenneth Hsu 0a91bcf662 Fix path to SQLite.Interop.dll.
This assembly lives in the win32 and win64 subdirectories, and not in
the base path.

This fixes #4093.
2020-02-17 09:34:39 -08:00
verhoek 8bb406cd15 Migrated to use the platform class. 2018-11-02 22:17:16 +01:00
Kenneth Hsu 9e0b031fee Remove unused members. 2018-10-15 21:20:30 -07:00
Kenneth Skovhede 8a00ce5c80 Merge branch 'verhoek-fix/sqlite_file_permissions'
# Conflicts:
#	Duplicati/Library/SQLiteHelper/SQLiteLoader.cs
2018-06-28 10:50:17 +02:00
Kenneth Skovhede db222c1991 Now getting the correct UID and GID 2018-06-28 09:28:14 +02:00
Kenneth Skovhede 5405139729 Replaced compile-time flag and dependency on Mono.Posix with a dynamic call to UnixSupport to defer loading the Mono.Posix library. 2018-06-27 13:36:08 +02:00
verhoek fc5f582800 moved dll filename var to const. Only change permissions on new file creation. 2018-06-23 19:16:12 +02:00
verhoek eabb840a4c Only add mono.posix on non-windows. 2018-06-22 17:21:28 +02:00
verhoek edc866c17e Make Codacy happier. 2018-06-22 09:47:46 +02:00
verhoek 05b2483b4c Added chmoding of sqlite files after opening by sqlite. Removal of some duplication. 2018-06-21 18:58:55 +02:00
verhoek 772eb1f187 Moved method to sqlite loader. 2018-06-21 18:08:52 +02:00
verhoek a456318d86 Undo of restoring TEMP/TMP environment variables. 2018-06-19 08:41:07 +02:00
verhoek 19132abd5f Check mixed mode assembly more explicitly. 2018-06-14 22:00:59 +02:00
verhoek 1cb13cc3cb Reduce indentation. 2018-06-14 21:43:20 +02:00
verhoek 98a4d4c247 Readded environment variables for SQLite on windows. 2018-06-14 21:35:21 +02:00
verhoek 7f06db8e44 Removed non-thread safe PRAGMA temp_store_directory command. 2018-06-11 22:06:06 +02:00
verhoek 544b89b3e2 Removed unused imports. 2018-06-11 19:10:41 +02:00
verhoek e51584e03f Added some logging in case of error. 2018-06-11 19:10:14 +02:00
verhoek fecd5163e5 Single responsibility applied. 2018-06-11 18:50:11 +02:00
verhoek d53a806e04 Removal of obsolete prev variable. 2018-06-11 18:31:39 +02:00
verhoek 784480a340 Removed tempdir environment variable.
Removed unused optional parameter for tempdir in LoadConnection for
LoadConnection and hence avoiding restoring never changed SQLITE_TMPDIR
vars.
2018-06-11 14:40:57 +02:00
Kenneth Skovhede ee64517f7d Removed calls to Console.WriteLine as we may run somewhere without a console. 2018-05-15 11:29:08 +02:00
Kenneth Hsu 056ff3da96 Use built-in method to determine if process is 64-bit. 2018-01-02 19:03:46 -08:00
Kenneth Skovhede f223c38ad7 Updating the SQLite library on Windows to 1.0.104.0.
The Linux version use Mono.Data.SQLite if possible, and otherwise attempts to wrap the system sqlite.so.

This fixes #2144
2017-03-01 11:10:01 +01:00
Kenneth Skovhede c79eaad6a8 Pedantic fix: use single quotes as described in the documentation 2017-01-16 10:28:38 +01:00
Kenneth Skovhede 3b4cd3c9c2 Experiment to set the SQLite temp folder, both through the environment variable and the deprecated pragma statement 2017-01-15 23:09:47 +01:00
Kenneth Skovhede ca5e503680 Fixed loading SQLite with Mono 4.0 and newer 2015-05-04 10:43:24 +02:00
Kenneth Skovhede 8d13e698eb Updated copyright notices 2015-01-20 21:44:52 +01:00
Kenneth Skovhede 968785ce32 Fixed a spelling error 2014-06-18 13:28:12 +02:00
Kenneth Skovhede 4414c2f0dd Moved SQLite related items into a separate project to avoid pulling in the extra content files when using the utility library for mini projects 2014-04-07 11:59:33 +02:00