Releases: PaulHatch/trancesql
0.15.3
0.15.2
Support for Partial Updates
This release adds a few features to support executing partial commands:
- The assignment collection class used by the
Update.Set
property adds aninclude
boolean parameter to allAdd
methods which defaults totrue
. If set tofalse
, the assignment will not be included in the final command. - Update commands with no assignments will not be rendered
- Commands with no rendered queries will not be executed and will return the default value for the execution type instead
- Deferred execution of contexts which include either no commands or only contain the begin/commit transaction commands will not be executed
Full Changelog: 0.15.0...0.15.1
Updates for deferred operations
This release updated the deferred context to better support write operation execution.
- It is now possible to provide begin and commit transaction declarations when creating a deferred context which will wrap the command when executed
- DeferredContext is now disposable, ensuring the commands will be executed even if no data is fetched
- Once executed, a deferred context will not run again but only return the previously retrieved value
Full Changelog: 0.14.2...0.15.0
Fix package references
0.14.2 Remove benchmark references accidentally included in release packages
Add HasExecuted Property
This release adds a HasExecuted
property to the Command
class to indicate whether or not the command has been executed at least once.
Dependency Update & Replace OpenTracing
This release bumps the .NET version used to .NET 6 and the dependencies to their latest version. OpenTracing has been removed in favor of using System.Diagnostics.ActivitySource, which can be used with multiple providers, but most notably OpenTelemetry.
Note that this is a breaking change compared to the previous pre-release.
Nullable Support
This version adds a few language updates and includes better nullable coverage.
New Connection API & .NET 6.0
Connection Factory Replacing Rolling Credentials
This release removes the "rolling credentials" provider in favor of a simplified and unopinionated IConnectionFactory
. To implement rolling credentials or other customizations, provide an implementation of this interface when creating the database object.
Now Targeting .NET 6.0
With previous versions of .NET nearing, end of life, this release targets .NET 6. Upcoming releases will utilize some features added in more recent releases of .NET/C#.
Update Npgsql Version Dependency
Support Npgsql > 4.1.x