sqloom 0.1.0
See the version list below for details.
dotnet tool install --global sqloom --version 0.1.0
dotnet new tool-manifest
dotnet tool install --local sqloom --version 0.1.0
#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 SQLcorrelate: match replayed SQL back to a Query Store snapshotadvise: send replay evidence, Query Store matches, and a schema file to OpenAItune: run the fullobserve -> replay -> correlate -> adviseflow
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:
| Product | Versions 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. |
This package has no dependencies.