Commit Graph
79 Commits
Author SHA1 Message Date
Carl Johnsen 3c36e227ef LocalListDatabase.IFileSets now implements IAsyncDisposable 2025-06-17 21:03:41 +02:00
Carl Johnsen 3d11a05400 Added .ConfigureAwait(false) to all of the await statements 2025-06-12 08:34:29 +02:00
Carl Johnsen ef5df3bd7a Changed property accessing database to be an async method 2025-06-11 14:32:18 +02:00
Carl Johnsen 95dc884ab3 Removed unnecessary casts 2025-06-11 11:27:15 +02:00
Carl Johnsen f373880c5a Renamed ExpandInClauseParameterAsync, as one of them isn't actually async.
Postfix mssqlite has been added as well to not clash with the IDb implementation
2025-06-11 10:47:40 +02:00
Carl Johnsen 2cd1692532 Temporary fix to distinguish between new and legacy extension method 2025-05-22 13:25:42 +02:00
Carl Johnsen d11b4e58e7 Reworked the factory construction chains to forward an instantiated object where applicable 2025-05-21 07:24:36 +02:00
Carl Johnsen aa70a1e41c Restructured SQL queries in LocalListDatabase 2025-05-20 09:28:52 +02:00
Carl Johnsen e0dece7fab Made LocalListDatabase async 2025-05-20 09:00:45 +02:00
Carl Johnsen b15b1db333 Changed heavy async properties in LocalListDatabase.FileSets into methods 2025-05-20 08:49:32 +02:00
Carl Johnsen af49f7332a Removed FormatInvariant as it's now handled by the extension methods 2025-05-20 08:34:03 +02:00
Carl Johnsen 388ed0d2ea Purged IDb from LocalListDatabase 2025-05-20 08:30:32 +02:00
Carl Johnsen f1f6924fe0 Changed LocalListDatabase to use factory construction 2025-05-20 08:11:48 +02:00
Kenneth Skovhede f533e3d300 Moved fragment back 2025-04-29 15:49:38 +02:00
Kenneth Skovhede a3bc9b80ca Implemented 4 new list methods that are optimized for a single operation 2025-04-29 10:03:57 +02:00
Kenneth Skovhede 0a7a1cd689 Added option to set the SQLite page cache
This adds an extra option to allow setting the SQLite page cache size as a regular option.

Prior to this commit it was only possible to set the SQLite page cache size via environment variables.

The option to use environment variables is preserved, and as options from the environment variable are applied after the new setting, environment variables take precedence.

The default value for the new option is to use 1% of the system memory for the page cache. For the restore process, a connection per worker may be made which defaults to half the number of cores, so the maximum amount of memory is 1% * half the CPU cores.

This is just the upper limit, and SQLite may choose not to use all of it.

This fixes #6178
2025-04-22 14:26:46 +02:00
Kenneth Skovhede 0b735d79ff More cleanup and a few bug fixes 2025-04-03 16:38:51 +02:00
Kenneth Skovhede 2006556778 Fixed some more nullable support in the database layer 2025-04-03 15:46:20 +02:00
Kenneth Skovhede c1d83a4e59 Removed unused parameters 2025-04-02 14:51:31 +02:00
Kenneth Skovhede 6a4e0a989d Added LocalListDatabase 2025-04-02 14:46:38 +02:00
Kenneth Skovhede bb1aa8e1f7 Cosmetic cleanup
Removed superfluous namespaces.
Using `var` most places.
Using extension methods for common setup of commands.
2025-03-14 14:34:56 +01:00
Kenneth Skovhede 7234d43961 Fixed all SQL strings to use interpolation and forced them into the FormattableString handler using the invariant formatting. 2025-03-14 12:13:17 +01:00
Kenneth Skovhede f342d70819 Implemented forced invariant locale on all SQL strings.
This fixes #6023
2025-03-13 23:06:32 +01:00
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Kenneth Skovhede 49fb45859c Fixed some incorrectly quoted literals in SQL statements 2024-04-15 08:24:01 +02:00
Kenneth Skovhede 40dd3c6816 Updated all license mentions to MIT 2024-02-28 15:45:30 +01:00
Kenneth Hsu 4950e7c225 Unhide partial filesets from Sets property getter.
This concerns issue #3982.
2019-11-19 19:30:01 -08:00
Kenneth Hsu c395e77bc2 Unhide partial filesets from QuickSets property getter.
This concerns issue #3982.
2019-11-19 19:29:59 -08:00
drwtsn32x dc87ca1873 remove namespace reference 2019-10-05 11:39:05 -07:00
drwtsn32x 176558d68d roll back pr 3846 2019-10-05 11:34:49 -07:00
BlueBlock 5e2d4f789c correct field id's 2019-08-31 18:44:07 -04:00
BlueBlock 653e687b0e Merge remote-tracking branch 'upstream/master' into fix-stop-after-current-file 2019-08-25 14:19:00 -04:00
BlueBlock fc34f7abbf apply fix to all systems 2019-08-24 11:25:15 -04:00
BlueBlock c3f7923afa add braces but really is to kickoff travis again 2019-08-21 12:55:24 -04:00
BlueBlock c74505301b add braces 2019-08-21 12:20:07 -04:00
BlueBlock 9a6fc927d3 add missing check for id in dict 2019-08-21 12:17:21 -04:00
BlueBlock d11c7f1378 fix QuickSets to return results of expected sets in dict[]
older partial sets are being included that are not in dict[]
2019-08-18 18:42:49 -04:00
BlueBlock dfe8b817e3 rename variable and relocate BackupType() to base method 2019-08-18 14:41:37 -04:00
BlueBlock f3590cb7e6 fix db read for isfullbackup 2019-08-18 09:51:59 -04:00
BlueBlock 9bdee90e5c hide partials that are bracketed by full backups 2019-08-16 21:59:46 -04:00
BlueBlock 08e2c18185 add handling of a partial backup
- add backup state to DB table 'fileset' (job database upgrade to version 10)
- modify the Restore page dropdown to display if a backup is "partial"
- modify retention logic to remove partial backups only when the next recent full-backup has been removed
2019-08-05 20:14:05 -04:00
BlueBlock 1699d5e759 simplified logic 2019-08-03 19:25:27 -04:00
BlueBlock 0155131017 add logic to apply fix to Windows only 2019-08-03 19:16:52 -04:00
BlueBlock 6602664fb2 fix bug in GetLargestPrefix() which adds an ending slash to file name paths
for the section of code which handles files, AppendDirSeparator(() is being applied to files when it should n't be at all. This results in all file paths to have an ending slash. This adjusted path causes the sql query to have 0 results.
2019-08-02 16:42:18 -04:00
MaxandRune Henriksen 65e79a276b fix for unc paths in prefixes (#3599) 2019-01-12 01:12:51 +01:00
verhoek b2cc18426c Renamed Library.IO to Library.Common.IO.
Moved basic Platform functions to Library.Common.Platform.
Turned IO_OS into property within Library.Common.
2018-11-02 21:34:07 +01:00
verhoek c398dec768 Fixed relevant code issues brought up by codacity. 2018-10-29 12:11:56 +01:00
verhoek bc053df294 Moved basic IO helper functions to Library.IO. 2018-10-27 12:17:07 +02:00
Kenneth Hsu f12858e6a5 Mark fields that shouldn't be reassigned as readonly.
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2018-05-25 10:04:52 -07:00
Kenneth Hsu 8810e0130d Make string comparisons use ordinal (binary) sort rules.
These string comparisons should not be culture-aware.
2017-11-26 11:19:54 -08:00