sqloom 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global sqloom --version 0.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local sqloom --version 0.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=sqloom&version=0.1.0
                    
nuke :add-package sqloom --version 0.1.0
                    

sqloom

sqloom is a .NET tool for finding slow database work behind API requests in .NET applications. It can read Query Store from SQL Server or Azure SQL, replay API operations against app-specific test harnesses, correlate captured SQL with Query Store, and generate tuning advice plus SQL proposal sidecars.

tune runs the full flow: observe -> replay -> correlate -> advise.

Install from NuGet.org

dotnet tool install --global sqloom
sqloom --help

To update an existing install:

dotnet tool update --global sqloom

Main commands

  • observe: read recent Query Store data with an explicit --read-only-connection-string <connection-string>
  • replay: replay API operations against an app-specific test harness and capture SQL
  • correlate: match replayed SQL back to a Query Store snapshot
  • advise: send replay evidence, Query Store matches, and a schema file to OpenAI
  • tune: run the full observe -> replay -> correlate -> advise flow

Required inputs

observe and correlate require --read-only-connection-string <connection-string>.

advise and tune use OpenAI for the advice step. Pass:

  • --model-provider openai
  • --openai-api-key <key>
  • --sqlserver-schema-file <path>

SQL Server-backed replay harnesses can use a prebuilt DACPAC via --sqlserver-dacpac-file <path>. App-owned harnesses can also accept a post-DACPAC SQL seed script via --sqlserver-seed-sql-file <path> when they need to restore data into the fresh replay database after publish.

Use the global --debug switch when you want stage-owned diagnostics on stderr. In particular, advise --debug prints readable, redacted OpenAI request and response payloads, and tune --debug cascades the same debug mode through observe, replay, correlate, and advise.

Example

sqloom replay .\src\MyApi\MyApi.csproj --target "GET /api/orders/{id}"

Install from a local feed

Install the tool from a local folder feed:

dotnet tool install --tool-path <tool-path> sqloom --add-source <local-feed-path> --ignore-failed-sources

The published sqloom tool package is sufficient for both local folder-feed installs and public NuGet.org installs.

See the repository README for the full end-to-end sample and maintainer workflow:

Sqloom on GitHub

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.

This package has no dependencies.

Version Downloads Last Updated
0.5.1 199 7/25/2026
0.5.0 189 7/22/2026
0.4.0 190 7/13/2026
0.3.0 188 7/12/2026
0.2.0 208 6/24/2026
0.1.0 202 6/22/2026