Xledger.Sql
1.0.1
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Xledger.Sql
Xledger.Sql provides tools for analyzing and transforming Transact SQL queries. This is provided in 3 main pieces:
Xledger.Sql.ScopedFragmentTransformer
: aTSqlFragment
visitor that tracks the scope of visits to ease context-aware rewrites.Xledger.Sql.Extensions
: providing aReplaceScalar
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.Xledger.Sql.ImmutableDom
: an immutable version ofMicrosoft.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.
- Increment the
<VersionSuffix>
in Xledger.Sql/Xledger.Sql.csproj; or<VersionPrefix>
if releasing a new major, minor, or patch version. - 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;
- 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 | Versions 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.
-
.NETFramework 4.8
- Microsoft.SqlServer.TransactSql.ScriptDom (>= 161.8910.0)
-
net6.0
- Microsoft.SqlServer.TransactSql.ScriptDom (>= 161.8910.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.