Commit Graph
772 Commits
Author SHA1 Message Date
Carl Johnsen def0be53d2 Purged IDb from LocalListChangesDatabase 2025-05-20 07:33:57 +02:00
Carl Johnsen 49663b9d55 Changed LocalListChangesDatabase to use factory construction 2025-05-20 07:25:12 +02:00
Carl Johnsen 75c77bdaa6 Fixed async method not being async 2025-05-20 07:08:01 +02:00
Carl Johnsen caf5bddc0c Restructured SQL queries in LocalListBrokenFilesDatabase 2025-05-20 07:07:44 +02:00
Carl Johnsen ef717048e8 Purged IDb from LocalListBrokenFilesDatabase 2025-05-20 06:54:09 +02:00
Carl Johnsen f7a0e17110 Made LocalListBrokenFilesDatabase async 2025-05-20 06:46:45 +02:00
Carl Johnsen 5622547abb Removed calls to FormatInvariant as the extension methods handle this now 2025-05-20 06:41:51 +02:00
Carl Johnsen 7cdee45c30 Changed LocalListBrokenFilesDatabase to use factory construction 2025-05-20 06:38:55 +02:00
Carl Johnsen b292756eb9 Removed whitespace 2025-05-20 06:36:54 +02:00
Carl Johnsen 654b80fee3 Restructured SQL queries in LocalListAffectedDatabase 2025-05-20 06:35:17 +02:00
Carl Johnsen dadbd9ed76 Made LocalListAffected Database async 2025-05-20 06:15:56 +02:00
Carl Johnsen 044110318b Changed LocalListAffectedDatabase to use factory construction 2025-05-20 06:11:41 +02:00
Carl Johnsen 3e3a9b5aa9 More SQL query restructuring 2025-05-20 06:07:45 +02:00
Carl Johnsen 0b508d2575 Started work on restructuring the SQL queries in LocalBackupDatabase. 2025-05-19 21:59:44 +02:00
Carl Johnsen 88db9676b4 Restructured SQL queries in LocalDeleteDatabase and made everything async where applicable 2025-05-19 21:51:28 +02:00
Carl Johnsen ed6cee24d1 Changed a heavy property in LocalDeleteDatabase to a function to convey the heavyness 2025-05-19 21:03:40 +02:00
Carl Johnsen 2c9bc49b3d Changed LocalDeleteDatabase to use factory construction 2025-05-19 20:43:45 +02:00
Carl Johnsen af2b1565b5 Removed whitespace 2025-05-19 20:38:34 +02:00
Carl Johnsen 13194bbd98 Restructured SQL queries in LocalBugReportDatabase and ensured it's async 2025-05-19 20:38:10 +02:00
Carl Johnsen 940d4077ff Changed LocalBugReportDatabase to use factory construction 2025-05-19 20:31:37 +02:00
Carl Johnsen f2f28f7eea Removed whitespace 2025-05-19 20:30:59 +02:00
Carl Johnsen d08bcbba3a Updated ChangeStatistics to use Microsoft.Data.Sqlite and be async 2025-05-19 15:56:16 +02:00
Carl Johnsen f3f00faf8e Incorrectly called the synchronous version of a function 2025-05-19 15:45:31 +02:00
Carl Johnsen d73a555647 Restructured the SQL queries in LocalBackupDatabase and made sure it's properly async 2025-05-19 15:43:55 +02:00
Carl Johnsen c848ca6819 Added more extension methods as they're required by LocalBackupDatabase 2025-05-19 15:43:21 +02:00
Carl Johnsen 41462ba7e3 Added default value to the synchronous ReusableTransaction.Commit(), as nothing should be a valid parameter 2025-05-19 14:41:16 +02:00
Carl Johnsen 973ba1ad9c Preliminary work on implicit (from an external view) transactions 2025-05-19 14:40:28 +02:00
Carl Johnsen 48e6b61977 Purged IDb from LocalBackupDatabase 2025-05-19 14:40:00 +02:00
Carl Johnsen ae12d63468 Changed TemporaryDbValueList to use factory construction and to be proper async. 2025-05-19 14:27:01 +02:00
Carl Johnsen d4c56ec9ef Changed TemporaryDbValueList from IDb to Microsoft.Data.Sqlite 2025-05-19 13:49:14 +02:00
Carl Johnsen 4ab7f290a7 Updated LocalBackupDatabase to use factory construction 2025-05-19 13:19:24 +02:00
Carl Johnsen bdaa976f6b Changed LocalRestoreDatabase to pass the ReusableTransaction instead of its inner transaction 2025-05-19 10:49:22 +02:00
Carl Johnsen 2dabf56c82 Additional SQL query whitespaces 2025-05-19 10:46:50 +02:00
Carl Johnsen ab6b2a64c9 Added the extension method to pass ReusableTransactions directly on SqliteCommands 2025-05-19 10:37:37 +02:00
Carl Johnsen ba5f9e8a3d Restructured SQL statements in LocalRepairDatabase as well as changing calls to SqliteCommands to use a chain of method calls rather than a sequence of statements 2025-05-19 10:37:13 +02:00
Carl Johnsen 8bc81a45db Changed LocalRepairDatabase to use factory for construction 2025-05-19 07:09:12 +02:00
Carl Johnsen cb4e9eb657 Made the LocalDatabase constructor protected to ensure that derived classes won't call the obsolete warning throwing constructor. 2025-05-19 06:40:18 +02:00
Carl Johnsen 32b14908dd Default message to reusable transaction should be null - i.e. empty. 2025-05-16 15:50:36 +02:00
Carl Johnsen c380989aad Added a readonly property to LocalDatabase's transaction, so derived classes can access it 2025-05-16 15:50:11 +02:00
Carl Johnsen 1a0c6dcb37 Restructered SQL statements, ensured all calls to the database are async, and that commands are created using a chan of method calls rather than a sequence of statements 2025-05-16 15:49:40 +02:00
Carl Johnsen 88f5fbb963 Moved async code from constructors to factory functions 2025-05-16 15:48:27 +02:00
Carl Johnsen 43dc194acd Changed heavy properties of LocalRestoreDatabase to methods instead 2025-05-16 15:40:04 +02:00
Carl Johnsen d9584c5acb Removed using introduced by IDE 2025-05-16 13:46:05 +02:00
Carl Johnsen 44c037e864 Implemented factory construction of LocalRestoreDatabase 2025-05-16 13:44:57 +02:00
Carl Johnsen 7b3163b851 Post-rebase fixes to LocalDatabase 2025-05-16 12:38:13 +02:00
Carl Johnsen 2de3f1d5b5 Reintroduced the synchronous CreateCommand extension method 2025-05-16 12:38:02 +02:00
Carl Johnsen 84b50e5db8 Added the SetTransaction extension method.
The main use is to ensure that the given transaction parameter is not null.
Maybe it will be performing more checks in the future.
2025-05-16 12:23:46 +02:00
Carl Johnsen 8230829266 Restructered all of the internal SQL queries for better readability.
Also changed most executions of the queries to a chain of method calls instead of a series of statements.
2025-05-16 12:23:46 +02:00
Carl Johnsen 029f560f64 Changed FilteredFilenameTable to a factory-like construction. 2025-05-16 12:22:57 +02:00
Carl Johnsen 1cb7c882f9 Removed calls to a helper function that's been moved to extension methods 2025-05-16 12:22:57 +02:00