Commit Graph
11886 Commits
Author SHA1 Message Date
Carl Johnsen 2dafca03d4 Found statements missing await 2025-05-27 06:37:41 +02:00
Carl Johnsen a4e608d7c4 Updated transaction propagation logic, as all commands must have a transaction 2025-05-27 06:23:49 +02:00
Carl Johnsen 5463cdcf24 NOT keyword was accidentally removed from an SQL query. 2025-05-27 05:40:52 +02:00
Carl Johnsen b54bcba624 All commands should run in a transaction 2025-05-27 05:40:07 +02:00
Carl Johnsen 7fa181a759 Commit to ensure that changes are visible 2025-05-27 05:39:51 +02:00
Carl Johnsen 115bf269d3 Pooling ensures that a connection (and thus also filehandle) may persist even after all of the database connections have been closed, which is undesirable. 2025-05-27 05:39:31 +02:00
Carl Johnsen e11d6377ac Construction chain was incorrect for LocalBackupDatabase 2025-05-26 09:06:42 +02:00
Carl Johnsen 5408570643 All SQL queries should be performed inside of a transaction 2025-05-26 09:03:21 +02:00
Carl Johnsen 26e738e8d6 The databases may still need to use the transaction when disposing for running PRAGMA optimize 2025-05-26 09:02:52 +02:00
Carl Johnsen 2f1cf9f010 The databases themselves handles disposing the transactions 2025-05-26 09:02:08 +02:00
Carl Johnsen 9a34ace37d Microsoft.Data.Sqlite doesn't have OpenAsync(), only Open() 2025-05-23 15:49:10 +02:00
Carl Johnsen 806d3b512c Fixed livelock in the new restore flow by changing from a spinlock to an awaitable task. 2025-05-23 15:48:24 +02:00
Carl Johnsen e57768f604 All transactions should be deferred 2025-05-23 15:46:58 +02:00
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