SqlToViz.Onnx
0.1.0-alpha.2
dotnet add package SqlToViz.Onnx --version 0.1.0-alpha.2
NuGet\Install-Package SqlToViz.Onnx -Version 0.1.0-alpha.2
<PackageReference Include="SqlToViz.Onnx" Version="0.1.0-alpha.2" />
<PackageVersion Include="SqlToViz.Onnx" Version="0.1.0-alpha.2" />
<PackageReference Include="SqlToViz.Onnx" />
paket add SqlToViz.Onnx --version 0.1.0-alpha.2
#r "nuget: SqlToViz.Onnx, 0.1.0-alpha.2"
#:package SqlToViz.Onnx@0.1.0-alpha.2
#addin nuget:?package=SqlToViz.Onnx&version=0.1.0-alpha.2&prerelease
#tool nuget:?package=SqlToViz.Onnx&version=0.1.0-alpha.2&prerelease
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 | Versions 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. |
-
net10.0
- Microsoft.ML.OnnxRuntime (>= 1.32.0)
- SqlToViz (>= 0.1.0-alpha.2)
-
net8.0
- Microsoft.ML.OnnxRuntime (>= 1.32.0)
- SqlToViz (>= 0.1.0-alpha.2)
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 |