Commit Graph
839 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 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 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 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 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 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 9693840611 Updated one call that went from Task<IEnumerable> to IAsyncEnumerable 2025-05-22 06:47:38 +02:00
Carl Johnsen 7a6bc2ba26 Removed transactions as parameter in the methods of LocalRecreateDatabase as part of the move towards implicit transactions 2025-05-22 06:14:16 +02:00
Carl Johnsen 4d8d1a80d1 Updated an inner call of FilesetVolumeWriter to use the new async database methods 2025-05-22 06:01:22 +02:00
Carl Johnsen 67c17871f9 Reintroduced CreateTemporaryFileset helper function for instantiating inner class of LocalPurgeDatabase 2025-05-22 06:00:01 +02:00
Carl Johnsen 58fc35e9fd Changed LocalDatabase.GetFilesetIDs to return an async enumerable, rather than a task containing an enumerable. 2025-05-21 15:56:59 +02:00
Carl Johnsen 0eba962fb9 Reintroduced helper function for constructing a LocalListChangesDatabase.StorageHelper 2025-05-21 15:45:18 +02:00
Carl Johnsen 5ffff0e32e Fixed a method being synchronous in LocalTestDatabase 2025-05-21 14:51:47 +02:00
Carl Johnsen cc2f9740ae Reintroduced the helper method for constructing a
LocalDeleteDatabase.BlockQuery
2025-05-21 14:51:22 +02:00
Carl Johnsen edf1d93f56 Removed transactions as arguments as part of the transition to implicit transactions 2025-05-21 10:08:06 +02:00
Carl Johnsen e4cffd5735 Restructured SQL queries in LocalTestDatabase 2025-05-21 09:40:32 +02:00
Carl Johnsen ef2f856c61 Made everything in LocalTestDatabase async 2025-05-21 09:22:29 +02:00
Carl Johnsen d6889569bb Removed FormatInvariant as it's now handled by the extension methods 2025-05-21 09:13:01 +02:00
Carl Johnsen 602a30d8e2 Purged IDb from LocalTestDatabase 2025-05-21 09:11:25 +02:00
Carl Johnsen 60b8df6474 Changed LocalTestDatabase to use factory construction 2025-05-21 09:05:34 +02:00
Carl Johnsen 8c11cc9f71 Removed whitespace 2025-05-21 09:05:15 +02:00
Carl Johnsen d45e977d53 Found more factory construction inconsistencies 2025-05-21 08:47:24 +02:00
Carl Johnsen 4affe460ad Restructered SQL queries in LocalRecreateDatabase 2025-05-21 08:42:42 +02:00
Carl Johnsen 003faef8bf Ensured all calls to sqlite in LocalRecreateDatabase uses extension methods and are properly async 2025-05-21 07:57:13 +02:00
Carl Johnsen 712d75a3d3 Removed FormatInvariant as it's now handeld by the extension methods 2025-05-21 07:40:39 +02:00
Carl Johnsen 89a5f5d4f7 Changed LocalRecreateDatabase to use factory construction 2025-05-21 07:36:44 +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 9776e8ba33 Found inconsintensies in how the purge and delete databases are constructed now, through the create methods compared to the previous constructors. 2025-05-20 21:41:47 +02:00
Carl Johnsen 6a5214f72d Restructered SQL queries in LocalPurgeDatabase 2025-05-20 16:27:33 +02:00
Carl Johnsen 4ca147d0f1 More preliminary work towards implicit reusable transaction 2025-05-20 16:27:07 +02:00
Carl Johnsen a720a69291 Made LocalPurgeDatabase async 2025-05-20 16:15:37 +02:00
Carl Johnsen 5f65c877d9 Removed FormatInvariant as it's now handled by the extension methods 2025-05-20 16:03:12 +02:00
Carl Johnsen 1ddce07d0f Purged IDb from LocalPurgeDatabase 2025-05-20 15:59:07 +02:00
Carl Johnsen 2e570a5862 Changed LocalPurgeDatabase to use factory construction 2025-05-20 15:54:23 +02:00