Commit Graph
21 Commits
Author SHA1 Message Date
Carl Johnsen b9952281ed ReusableTransaction.RollbackAsync now also accepts cancellation tokens 2025-06-19 08:07:48 +02:00
Carl Johnsen 3b3a7801b8 Made the LocalDatabase methods accept a cancellation token 2025-06-18 15:36:10 +02:00
Carl Johnsen ae633fe0e8 Added more docstrings 2025-06-18 07:42:57 +02:00
Carl Johnsen 1f97832546 Classes implementing DisposeAsync should also implement the interface 2025-06-17 15:11:25 +02:00
Carl Johnsen 3d11a05400 Added .ConfigureAwait(false) to all of the await statements 2025-06-12 08:34:29 +02:00
Carl Johnsen 087ff65646 Removed synchronous helper method 2025-06-11 07:41:03 +02:00
Carl Johnsen db7b81d3a1 Disposing a reusable transaction implicitly rolls it back 2025-06-05 09:14:17 +02:00
Carl Johnsen 3bfe6eb349 Added additional context to commits without messages 2025-06-03 21:46:19 +02:00
Carl Johnsen e57768f604 All transactions should be deferred 2025-05-23 15:46:58 +02:00
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