Xledger.Sql 1.0.1

dotnet add package Xledger.Sql --version 1.0.1                
NuGet\Install-Package Xledger.Sql -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xledger.Sql" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xledger.Sql --version 1.0.1                
#r "nuget: Xledger.Sql, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Xledger.Sql as a Cake Addin
#addin nuget:?package=Xledger.Sql&version=1.0.1

// Install Xledger.Sql as a Cake Tool
#tool nuget:?package=Xledger.Sql&version=1.0.1                

Xledger.Sql

NuGet version (Xledger.Sql)

Xledger.Sql provides tools for analyzing and transforming Transact SQL queries. This is provided in 3 main pieces:

  1. Xledger.Sql.ScopedFragmentTransformer: a TSqlFragment visitor that tracks the scope of visits to ease context-aware rewrites.
  2. Xledger.Sql.Extensions: providing a ReplaceScalar extension method to replace one scalar in its parent with a new scalar - without having to know exactly where in the parent the old scalar was present.
  3. Xledger.Sql.ImmutableDom: an immutable version of Microsoft.SqlServer.TransactSql.ScriptDom to enable caching parts of a SQL DOM or structural comparison of them.

The tests in Xledger.Sql.Test demonstrate how to use this library.

Testing Locally

To generate a new NuGet package to verify that the package is sane.

  1. Increment the <VersionSuffix> in Xledger.Sql/Xledger.Sql.csproj; or <VersionPrefix> if releasing a new major, minor, or patch version.
  2. Run. For Release:
cls; dotnet clean; dotnet pack -c Release;
nuget init Xledger.Sql\bin\Release c:\packages;

For Debug:

cls; dotnet clean; dotnet pack;
nuget init Xledger.Sql\bin\Debug c:\packages;
  1. Update the project that depends on Xledger.Sql.
dotnet add package Xledger.Sql --source c:\packages --prerelease

Running the Tests

dotnet test Xledger.Sql.Test

To list the available tests:

dotnet test Xledger.Sql.Test --list-tests
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 723 9/20/2024
1.0.0 1,962 1/19/2024
1.0.0-rc0 2,841 12/20/2022