Commit Graph
12093 Commits
Author SHA1 Message Date
Carl Johnsen 736b52c2fb Made the LocalPurgeDatabase methods accept a cancellation token 2025-06-19 07:00:14 +02:00
Carl Johnsen 3ea8733a4d Made the LocalListDatabase methods accept a cancellation token 2025-06-19 06:54:24 +02:00
Carl Johnsen 28ca30f617 Made the LocalListChangesDatabase methods accept a cancellation token 2025-06-18 16:28:23 +02:00
Carl Johnsen 42877ebf96 Made the LocalListBrokenFilesDatabase methods accept a cancellation token 2025-06-18 16:23:10 +02:00
Carl Johnsen 936742b586 Made the LocalListAffectedDatabase methods accept a cancellation token 2025-06-18 16:11:10 +02:00
Carl Johnsen c496d0bf8c Made the LocalDeleteDatabase methods accept a cancellation token 2025-06-18 16:07:46 +02:00
Carl Johnsen ccce18bb00 Made the LocalBugReportDatabase methods accept a cancellation token 2025-06-18 16:02:05 +02:00
Carl Johnsen 8039cbb0f6 Made the LocalBackupDatabase methods accept a cancellation token 2025-06-18 16:00:20 +02:00
Carl Johnsen 3b3a7801b8 Made the LocalDatabase methods accept a cancellation token 2025-06-18 15:36:10 +02:00
Carl Johnsen 87dc978425 Made the ChangeStatistics methods accept a cancellation token 2025-06-18 14:37:13 +02:00
Carl Johnsen da57bbae33 Made the TemporaryDbValueList methods accept a cancellation token 2025-06-18 14:21:57 +02:00
Carl Johnsen b9555cdcd4 Made all the async database extension methods accept a cancellation token 2025-06-18 14:21:35 +02:00
Carl Johnsen bc97eaf71b Removed redundant calls to a SqliteCommand.Parameters.Clear() 2025-06-18 12:06:20 +02:00
Carl Johnsen 9ac583db94 Made all relevant using statements use await to use DisposeAsync 2025-06-18 11:53:11 +02:00
Carl Johnsen 859b65054d Simplified using statements that uses databases or accesses their methods 2025-06-18 11:52:05 +02:00
Carl Johnsen f221098c28 Formatted SQL queries - mainly adding double quotes where they were missing. 2025-06-18 10:42:08 +02:00
Carl Johnsen baab370046 Added the final docstrings 2025-06-18 08:26:20 +02:00
Carl Johnsen ae633fe0e8 Added more docstrings 2025-06-18 07:42:57 +02:00
Carl Johnsen 224e883e8d Formatted SQL query strings 2025-06-18 07:30:39 +02:00
Carl Johnsen 20716e3fa6 Made some more of the internal classes in LocalTestDatabase implement IAsyncDisposable 2025-06-18 07:25:24 +02:00
Carl Johnsen eb4f763831 LocalTestDatabase.Basiclist now implements IAsyncDisposable 2025-06-18 06:59:57 +02:00
Carl Johnsen 86b75b395a LocalRestoreDatabase.IBlockMarker now implements IAsyncDisposable 2025-06-18 06:44:18 +02:00
Carl Johnsen 2296d040a2 LocalRestoreDatabase.IFilesAndMetadata now implements IAsyncDisposable 2025-06-17 22:15:57 +02:00
Carl Johnsen 273b0f093e Added more docstrings 2025-06-17 21:30:11 +02:00
Carl Johnsen b4e5f2739e Found incorrect type signature for DisposeAsync() methods 2025-06-17 21:05:34 +02:00
Carl Johnsen f167254efe LocalPurgeDatabase.ITemporaryFileset now implements IAsyncDisposable 2025-06-17 21:04:41 +02:00
Carl Johnsen 3c36e227ef LocalListDatabase.IFileSets now implements IAsyncDisposable 2025-06-17 21:03:41 +02:00
Carl Johnsen a32a5acaed Added more docstrings 2025-06-17 18:01:12 +02:00
Carl Johnsen 0960a60462 IStorageHelper now implements IAsyncDisposable 2025-06-17 17:45:20 +02:00
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