SqlToViz.Onnx 0.1.0-alpha.2

This is a prerelease version of SqlToViz.Onnx.
dotnet add package SqlToViz.Onnx --version 0.1.0-alpha.2
                    
NuGet\Install-Package SqlToViz.Onnx -Version 0.1.0-alpha.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="SqlToViz.Onnx" Version="0.1.0-alpha.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SqlToViz.Onnx" Version="0.1.0-alpha.2" />
                    
Directory.Packages.props
<PackageReference Include="SqlToViz.Onnx" />
                    
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 SqlToViz.Onnx --version 0.1.0-alpha.2
                    
#r "nuget: SqlToViz.Onnx, 0.1.0-alpha.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 SqlToViz.Onnx@0.1.0-alpha.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=SqlToViz.Onnx&version=0.1.0-alpha.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SqlToViz.Onnx&version=0.1.0-alpha.2&prerelease
                    
Install as a Cake Tool

SqlToViz .NET alpha

Targets .NET 8 and 10. Deterministic preview, four statistical detectors, DataTable and dictionary inputs, ApexCharts configuration. Model-backed engine with experimental candidate ONNX models: see below (package SqlToViz.Onnx). No SQL execution. Full feature extraction and golden parity (308 cases + differential fuzz) are implemented.

Run dotnet test SqlToViz.Tests/SqlToViz.Tests.csproj and dotnet pack SqlToViz/SqlToViz.csproj -c Release.

Typed inputs / Entradas tipadas

Pass a DataTable directly, or supply typed rows with an explicit projection. Both use the same deterministic preview and require scalar values in every row.

Pasa un DataTable directamente o proyecta filas tipadas de forma explícita. Ambas entradas usan la misma vista previa determinista y requieren valores escalares en cada fila.

var sales = new[] { (Category: "A", Amount: 10m), (Category: "B", Amount: 20m) };
var plan = SqlToViz.Preview.Recommend("SELECT category, amount", sales,
    row => new Dictionary<string, object?>
    {
        ["category"] = row.Category,
        ["amount"] = row.Amount,
    });

Model-backed engine (experimental)

using SqlToViz; using SqlToViz.Onnx;                           // dotnet add package SqlToViz.Onnx
var engine = OnnxEngine.LoadDefault();                          // bundled EXPERIMENTAL candidate models, checksum-verified
var rec = engine.Recommend("SELECT dept, SUM(sal) AS total FROM emp GROUP BY dept",
    new[] { new ColumnSpec("dept"), new ColumnSpec("total") },
    new[] { (IReadOnlyList<object?>)new object?[] { "a", 10.0 }, new object?[] { "b", 20.0 }, new object?[] { "c", 5.0 } });
rec.FinalClass; rec.ModelStatus; rec.Roles; rec.Warnings;

FeatureExtractor.Extract (package SqlToViz, no dependencies) computes the 32 table and 28 column features of SqlVizSpec-v1.0.0; Engine takes any IModelRunner, and SqlToViz.Onnx provides OnnxRunner (SHA256 + tensor-schema validated, single-thread CPU). The bundled models are candidates (chart: synthetic labels; role: 322 Vega-Lite columns) and every result says ModelStatus: "experimental". Final models drop in with OnnxEngine.LoadFromDirectory(dir) (a manifest.json with file/sha256/status) - the API and result shape do not change. SQL is never executed.

MudBlazor / ApexCharts adapters (alpha)

Package SqlToViz.MudBlazor (not yet published): Adapters.ToMudBlazor(plan, rows) returns typed ChartSeries, labels and ChartOptions for <MudChart> (bar, line; KPI card and table fallbacks), and Adapters.ToApexConfig(plan, rows) returns a complete ApexCharts options tree. Adapters.PlanFrom(recommendation, columns, rows) converts a model-backed Recommendation (roles) into a Plan. MudBlazor has no horizontal bar, so horizontal_bar is rendered as a vertical bar there and flagged in Notes.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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

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
0.1.0-alpha.2 66 11/28/2026
0.1.0-alpha.1 61 11/28/2026