Carl Johnsen
8814fdebcc
Added more docstrings
2025-06-17 15:13:33 +02:00
Carl Johnsen
1f97832546
Classes implementing DisposeAsync should also implement the interface
2025-06-17 15:11:25 +02:00
Carl Johnsen
1ece8398b6
Reordered tuple to match name
2025-06-17 14:02:18 +02:00
Carl Johnsen
e81100de04
Started on adding docstrings
2025-06-17 09:59:22 +02:00
Carl Johnsen
3d11a05400
Added .ConfigureAwait(false) to all of the await statements
2025-06-12 08:34:29 +02:00
Carl Johnsen
006a9b17ed
Properly get the list results asynchronously and evaluate them to an array.
...
Otherwise, the results will have a lazy loaded enumerable containing a hook into a disposed database, leading to errors when trying to do anything with the results.
2025-06-12 08:17:37 +02:00
Carl Johnsen
217ac39e0f
Changed the constructor of restore's BlockManager.SleepableDictionary to use factory-like async construction to make the database accesses async
2025-06-12 07:13:59 +02:00
Carl Johnsen
ef5df3bd7a
Changed property accessing database to be an async method
2025-06-11 14:32:18 +02:00
Carl Johnsen
e5337e4d26
Formatted SQL queries
2025-06-11 12:09:58 +02:00
Carl Johnsen
d56e8b2f4a
Removed whitespace
2025-06-11 11:58:07 +02:00
Carl Johnsen
d78348de81
Removed TODOs
2025-06-11 11:48:16 +02:00
Carl Johnsen
3042f311e2
Handled TODO stating that the call should use IAsyncEnumerable
2025-06-11 11:35:32 +02:00
Carl Johnsen
daac3ee241
Removed whitespace
2025-06-11 11:35:03 +02:00
Carl Johnsen
cb06275a81
Removed TODOs
2025-06-11 11:30:13 +02:00
Carl Johnsen
95dc884ab3
Removed unnecessary casts
2025-06-11 11:27:15 +02:00
Carl Johnsen
09251284ab
Removed TODOs
2025-06-11 11:07:54 +02:00
Carl Johnsen
da9334d174
Made ExpandInClaseParameterMssqlite generic to avoid casting
2025-06-11 11:07:41 +02:00
Carl Johnsen
be550de081
Wrapped a database VACUUM in a transaction
2025-06-11 10:56:29 +02:00
Carl Johnsen
fd5823a2f4
Found unformatted SQL queries in LocalTestDatabase
2025-06-11 10:54:02 +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
9c2252f36c
Ensured common order and interface for the async extension methods.
2025-06-11 10:46:04 +02:00
Carl Johnsen
1db0fc7789
Reordered the call trace of ExecuteScalarInt64Async
2025-06-11 10:06:55 +02:00
Carl Johnsen
bbe409d564
Reordered the call trace of ExecuteScalarAsync
2025-06-11 10:01:40 +02:00
Carl Johnsen
16fdb633be
Reordered the call trace of ExecuteReaderEnumerableAsync
2025-06-11 09:52:45 +02:00
Carl Johnsen
544ec85d87
Added missing combination of parameters to ExecuterReaderAsync
2025-06-11 09:48:09 +02:00
Carl Johnsen
7c9516eea0
Reordered the call trace of ExecuteNonQueryAsync
2025-06-11 09:42:51 +02:00
Carl Johnsen
1ab303caea
Reordered the call trace of ExecuteReaderAsync
2025-06-11 09:34:50 +02:00
Carl Johnsen
c1710cd6a4
Updated the database helper method for formatting SQL queries for logging
2025-06-11 09:33:30 +02:00
Carl Johnsen
e946b3593a
Handled TODOs in the database extension methods
2025-06-11 09:32:28 +02:00
Carl Johnsen
f411260c03
Removed TODO in comments on newly introduced commits due to how the pre Microsoft.Data.Sqlite backend would make nested transactions
2025-06-11 09:11:35 +02:00
Carl Johnsen
51f2d27166
Removed unused helper methods
2025-06-11 09:01:46 +02:00
Carl Johnsen
ebdddebeb1
Pragmas that change the safety level of a connection cannot be performed within a transaction
2025-06-11 09:01:12 +02:00
Carl Johnsen
51b86b06ff
Made the SQLiteLoader open async again
2025-06-11 09:00:26 +02:00
Carl Johnsen
90721af98d
Updated Server and ImportExportTests to use the async database backend
2025-06-11 08:58:32 +02:00
Carl Johnsen
94420be76d
Removed whitespace
2025-06-11 08:58:07 +02:00
Carl Johnsen
17cabeb329
Updated the DatabaseTool to use the new async database backend
2025-06-11 08:57:14 +02:00
Carl Johnsen
eda3d5321b
Removed whitespace
2025-06-11 08:56:58 +02:00
Carl Johnsen
8cff30f99b
Made BlockVolumeWriter.AddBlock async
2025-06-11 08:17:04 +02:00
Carl Johnsen
f32a5fa700
Removed whitespace
2025-06-11 08:16:23 +02:00
Carl Johnsen
471309aa15
Made RepairHandler.InProgressDblockVolumes.AddBlock async
2025-06-11 08:12:23 +02:00
Carl Johnsen
fa872d703e
Made InProgressDblockVolumes constructor calling async methods to use async factory-like methods
2025-06-11 08:07:44 +02:00
Carl Johnsen
14abda1c8b
Made file count retrieval async in PurgeBrokenFilesHandler
2025-06-11 08:03:00 +02:00
Carl Johnsen
087ff65646
Removed synchronous helper method
2025-06-11 07:41:03 +02:00
Carl Johnsen
66ed9600b8
Removed unused synchronous helper method
2025-06-11 07:38:24 +02:00
Carl Johnsen
73c8471f8e
Made BlocklistHashEnumerable and the code using it async
2025-06-11 07:37:22 +02:00
Carl Johnsen
e5fe48e501
Merge branch 'master' into performance/mssqlite-async
2025-06-11 06:23:54 +02:00
Kenneth Skovhede and GitHub
8797d31305
Merge pull request #6323 from marceloduplicati/feature/detect-access-deniedonport
...
Proposed fix for issue 6321 - Detect access denied exception on startup bind
2025-06-10 09:41:31 +02:00
Marcelo C.
e74937acb4
Proposed fix for issue 6321 - Detect access denied exception on startup bind
...
https://github.com/duplicati/duplicati/issues/6321
2025-06-06 11:53:16 -03:00
Carl Johnsen
bc52522f3b
A lot of the SELECT SQL queries don't have to commit. Especially not the ones returning an IAsyncEnumerable as that can leave a query execution as open, while the transaction is committed elsewhere.
2025-06-05 14:44:25 +02:00
Carl Johnsen
23509a27eb
Disposing the database disposes the reusable transaction and creates it's own transaction for PRAGMA optimize
2025-06-05 09:15:17 +02:00