Commit Graph
11873 Commits
Author SHA1 Message Date
Carl Johnsen da487182ae Connection pool in RestoreDatabase now has a transaction associated with each connection 2025-05-23 15:46:30 +02:00
Carl Johnsen 41ebeee4f0 All transactions should be deferred 2025-05-23 11:18:03 +02:00
Carl Johnsen 9419f225c0 Creating a new LocalRepairDatabase should close the database 2025-05-23 11:17:30 +02:00
Carl Johnsen 006efa875d Fixed missing increment 2025-05-23 11:16:30 +02:00
Carl Johnsen d0df1386cc Removed line that's also been removed on master 2025-05-23 11:16:17 +02:00
Carl Johnsen d27dec0a2f Updated methods to use the instance ReusableTransacition instead of starting a new one 2025-05-23 08:26:06 +02:00
Carl Johnsen abc7c79841 Dispose made infinite recursion between different class derivations 2025-05-23 08:20:00 +02:00
Carl Johnsen ad2d66ce2b Made ReusableTransaction automatically try to commit when disposing 2025-05-23 08:15:51 +02:00
Carl Johnsen dc4ef34cbd Since transactions are now shared across the lifespan of a database object, the transaction shouldn't be disposed halfway through. 2025-05-22 15:29:48 +02:00
Carl Johnsen 4ffbc36abf IAsyncEnumerable was being chained incorrectly 2025-05-22 15:29:10 +02:00
Carl Johnsen afa468377b Fixed typo 2025-05-22 15:28:46 +02:00
Carl Johnsen dc4404e751 Added missing await 2025-05-22 15:28:35 +02:00
Carl Johnsen 344d3dcb5b The new backend requires a value to be set 2025-05-22 15:28:14 +02:00
Carl Johnsen 6c7e67dd28 Post master merge fixes 2025-05-22 14:35:15 +02:00
Carl Johnsen a37f0dda31 Merge branch 'master' into performance/mssqlite-async 2025-05-22 14:09:17 +02:00
Carl Johnsen 22550be73c SQLite parameters are case sensitive. 2025-05-22 13:34:29 +02:00
Carl Johnsen c5248e007f Construction chain of databases wrongfully tried to start multiple transactions 2025-05-22 13:33:10 +02:00
Carl Johnsen 33f8a87b67 Updated SQLiteTests to be async 2025-05-22 13:32:22 +02:00
Carl Johnsen 2363e3a26d Removed whitespace 2025-05-22 13:30:52 +02:00
Carl Johnsen 9a08c7b12e Updated DirectListHandlerTests to use the new async database methods 2025-05-22 13:30:02 +02:00
Carl Johnsen eef156161b Reintroduced the old interface for TemporaryDbValueList and ReusableTransaction, as some of the unit tests construct these without a database instance. 2025-05-22 13:29:34 +02:00
Carl Johnsen b399adf534 BeginTransactionSafe() was a legacy helper method that called BeginTransaction() directly 2025-05-22 13:27:36 +02:00
Carl Johnsen 37039f467e Removed whitespace 2025-05-22 13:26:55 +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 21a9f0036c Reintroduced legacy database methods for non-main operation calls to be able to function. 2025-05-22 13:23:27 +02:00
Carl Johnsen e643c2dfce Method signature changed 2025-05-22 08:26:43 +02:00
Carl Johnsen afddb93e5d Async method wasn't awaited 2025-05-22 08:26:32 +02:00
Carl Johnsen cdba7ef6e9 Updated Utility to use the new async database methods 2025-05-22 08:25:25 +02:00
Carl Johnsen 30ca4f927e Reordered usings 2025-05-22 08:25:08 +02:00
Carl Johnsen b9f9b0360b Removed whitespace 2025-05-22 08:24:57 +02:00
Carl Johnsen 2b5dfbbb15 Changed the lock in BasicResults from a regular object lock to a semaphore in order to be able to lock asynchronously 2025-05-22 08:19:56 +02:00
Carl Johnsen 28fcff68ba Changed BasicResults.FlushLog to be async 2025-05-22 08:19:11 +02:00
Carl Johnsen 0df878e455 Reordered usings 2025-05-22 08:18:33 +02:00
Carl Johnsen a2e3eeb727 Removed whitespace 2025-05-22 08:18:21 +02:00
Carl Johnsen 8999dc4baa Updated Controller to use the new async database methods 2025-05-22 08:18:10 +02:00
Carl Johnsen 3e19db371d Removed whitespace 2025-05-22 08:17:53 +02:00
Carl Johnsen 46f394d6d5 Updated the BackendManager implementation to not pass down transactions (as they should be implicitly handled by the databases) and to use the new async database methods 2025-05-22 08:07:23 +02:00
Carl Johnsen f8f0fd39af Removed comments 2025-05-22 08:03:32 +02:00
Carl Johnsen 9c0f2ca980 LocalDatabase.Dispose() wasn't calling the database correctly with the ReusableTransaction 2025-05-22 08:01:45 +02:00
Carl Johnsen 2c408d795f LocalDatabase always starts a new ReusableTransaction 2025-05-22 08:01:16 +02:00
Carl Johnsen 97bfa11611 Updated VacuumHandler to use the new async database methods 2025-05-22 07:56:55 +02:00
Carl Johnsen 9444aa6337 Removed whitespace 2025-05-22 07:56:42 +02:00
Carl Johnsen a9681db613 Updated SearchEntriesHandler to use the new async database methods 2025-05-22 07:55:14 +02:00
Carl Johnsen 26db3a8f26 Removed whitespace 2025-05-22 07:55:01 +02:00
Carl Johnsen 9693840611 Updated one call that went from Task<IEnumerable> to IAsyncEnumerable 2025-05-22 06:47:38 +02:00
Carl Johnsen 6a0b836a79 Updated RestoreHandler to use the new async database methods 2025-05-22 06:47:16 +02:00
Carl Johnsen 7903045e36 Updated RestoreControlFilesHandler to use the new async database methods 2025-05-22 06:36:47 +02:00
Carl Johnsen 443e478ea9 Removed whitespace 2025-05-22 06:36:28 +02:00
Carl Johnsen c2a73613d7 Updated RepairHandler to match the new method signatures and removed transactions as parameters towards implicit transactions 2025-05-22 06:35:34 +02:00
Carl Johnsen 3fe3e113a7 Updated some of the database calls in RecreateDatabaseHandler to match the new signatures 2025-05-22 06:14:51 +02:00