NexusLabs.Data.Sql 0.2.2

dotnet add package NexusLabs.Data.Sql --version 0.2.2
                    
NuGet\Install-Package NexusLabs.Data.Sql -Version 0.2.2
                    
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="NexusLabs.Data.Sql" Version="0.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NexusLabs.Data.Sql" Version="0.2.2" />
                    
Directory.Packages.props
<PackageReference Include="NexusLabs.Data.Sql" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NexusLabs.Data.Sql --version 0.2.2
                    
#r "nuget: NexusLabs.Data.Sql, 0.2.2"
                    
#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.
#:package NexusLabs.Data.Sql@0.2.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NexusLabs.Data.Sql&version=0.2.2
                    
Install as a Cake Addin
#tool nuget:?package=NexusLabs.Data.Sql&version=0.2.2
                    
Install as a Cake Tool

NexusLabs.Framework (and friends)

A multi-package repository for cross-cutting NexusLabs C# tooling. Currently ships:

Package Purpose
NexusLabs.Framework Runtime utilities: result pattern (Tried/TriedEx/TriedNullEx), Try orchestration, stream wrappers, AsyncSemaphoreLease concurrency primitive, async event-handler helpers, async ADO.NET interface shapes, process diagnostics.
NexusLabs.Framework.Analyzers Roslyn analyzers for codebase hygiene and correct use of NexusLabs.Framework types. Test-specific and data-layer analyzers ship in separate packages.
NexusLabs.Xunit.Assertions xUnit.v3 assertion helpers that integrate with the Framework result-pattern types and HTTP response shapes. Uses C# 14 extension(Assert) blocks.
NexusLabs.CodeAnalysis.Testing.TUnit TUnit-flavored IVerifier for Microsoft.CodeAnalysis.Testing. Lets TUnit-based test projects use the full CSharpAnalyzerTest<TAnalyzer, TVerifier> harness, which Microsoft ships verifiers for in xUnit/NUnit/MSTest but not TUnit.
NexusLabs.Data.Sql Provider-agnostic decorators around IAsyncDbConnection/IAsyncDbCommand: bounded connection-lease (built on AsyncSemaphoreLease), open-tracking diagnostics, ILogger command logging, predicate-built factory.
NexusLabs.Data.Sql.MySql MySQL provider for the NexusLabs.Data.Sql surface and IAsyncDb* interfaces. Builds connection strings safely via MySqlConnectionStringBuilder.

Install

dotnet add package NexusLabs.Framework
dotnet add package NexusLabs.Framework.Analyzers # opt-in lint rules
dotnet add package NexusLabs.Xunit.Assertions    # only in test projects
dotnet add package NexusLabs.CodeAnalysis.Testing.TUnit  # for TUnit-based analyzer test projects
dotnet add package NexusLabs.Data.Sql            # provider-agnostic decorators
dotnet add package NexusLabs.Data.Sql.MySql      # adds MySql.Data backed factory

Both packages target net10.0. For earlier .NET versions, pin to a 0.1.x of NexusLabs.Framework.

What's in NexusLabs.Framework

Runtime utilities for cross-cutting C# concerns: a result-pattern type family (Tried/TriedEx/TriedNullEx) with Safely / Try orchestration helpers, stream wrappers, AsyncSemaphoreLease and related concurrency primitives, async event-handler glue, async ADO.NET interface shapes, and process diagnostics. The deprecated ITimeProvider ships for one more 0.x release; migrate to BCL System.TimeProvider.

The authoritative list of public types is the source tree under src/NexusLabs.Framework/ and the XML doc comments shipped in the package. See CHANGELOG.md for what landed in each version.

Result pattern

TriedEx<int> result = Safely.GetResultOrException(() => int.Parse(input));

result.Match(
    onSuccess: value => Console.WriteLine($"parsed: {value}"),
    onError: ex => Console.WriteLine($"failed: {ex.Message}"));

Archived packages

Six packages from this repository were archived as part of 0.2.0:

  • NexusLabs.Autofac, NexusLabs.Collections.Generic, NexusLabs.Contracts, NexusLabs.Dynamo, NexusLabs.Reflection, NexusLabs.Testing.Xunit

The 0.x lines remain on nuget.org. Source is preserved on the release/0.x branch. See docs/archived-packages/ for per-package migration guidance.

License

MIT © Nexus Software Labs

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on NexusLabs.Data.Sql:

Package Downloads
NexusLabs.Data.Sql.MySql

MySQL provider implementation for NexusLabs.Data.Sql. Provides MySqlConnectionFactory and MySQL-specific configuration; concrete adapter types remain internal so the implementation can be swapped without a breaking API change.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.2 45 5/30/2026
0.2.1 89 5/24/2026