Carl Johnsen
ad2d66ce2b
Made ReusableTransaction automatically try to commit when disposing
2025-05-23 08:15:51 +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
96d4906a73
Added rollback to ReusableTransaction
2025-05-20 07:34:14 +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
32b14908dd
Default message to reusable transaction should be null - i.e. empty.
2025-05-16 15:50:36 +02:00
Carl Johnsen
4c294ea5d8
Fix docstrings in ReusableTransaction
2025-05-16 12:21:56 +02:00
Carl Johnsen
3f0d835937
Rewrote the logic of ReusableTransaction.
...
The main idea was to remove internal use of nullable, and to only have one implementation; which is why the synchronous versions call the asynchronous versions.
2025-05-16 12:21:56 +02:00
Carl Johnsen
f9eda3118f
Updated ReusableTransaction to use Microsoft.Data.Sqlite
2025-05-16 12:21:56 +02:00
Carl Johnsen
15b812ee79
Removed whitespace
2025-05-16 12:21:56 +02:00
Kenneth Skovhede
faede65d8d
Changed transactions to use a wrapper that ensures a transaction is allocated.
2025-04-14 12:04:00 +02:00
Kenneth Skovhede
7b948a2f1d
Fixed issue with SQLite bindings not supporting arrays.
...
Added helper class to wrap values in a temporary table if they exceeed the maximum number of parameters.
2025-04-02 23:26:20 +02:00
Kenneth Skovhede
c1bdaa069e
Async operation handlers
...
Rewrote all operation handlers to be async.
This moves the async/sync threshold out into the controller.
Fixed all the uses of cancellation token in the handlers to use the provided cancellation token.
Introduced a new ReusableTransaction that can be passed around, avoiding a ref parameter passing of the transaction instance.
2025-03-14 10:41:14 +01:00