Skip to content

feat: add NsqlAsync and NsqlGenerateSqlAsync for the runtime's /v1/nsql endpoint - #25

Merged
krinart merged 1 commit into
trunkfrom
feat/nsql
Aug 19, 2026
Merged

feat: add NsqlAsync and NsqlGenerateSqlAsync for the runtime's /v1/nsql endpoint#25
krinart merged 1 commit into
trunkfrom
feat/nsql

Conversation

@krinart

@krinart krinart commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

What

Adds SpiceClient.NsqlAsync and NsqlGenerateSqlAsync, wrapping the runtime's POST /v1/nsql endpoint (natural-language to SQL).

  • NsqlAsync generates SQL from a natural-language query and runs it, returning the SQL alongside the rows.
  • NsqlGenerateSqlAsync only translates, so the caller can inspect/edit the SQL or run it themselves via Query.

Why

gospice already exposes this (Nsql / NsqlGenerateSQL); this brings the .NET SDK in line with the other SDKs.

Testing

New NsqlTest.cs: wire-contract tests for request/response JSON shape, and loopback-HttpListener tests asserting the actual HTTP request (path, Accept header per method, error body surfacing). dotnet build/dotnet test pass on netstandard2.0/net8.0/net9.0 (no net10 SDK available locally).

…dpoint

Adds SpiceClient.NsqlAsync and NsqlGenerateSqlAsync, wrapping the runtime's
natural-language-to-SQL endpoint. NsqlAsync runs the generated query and
returns the rows alongside the SQL; NsqlGenerateSqlAsync only translates,
letting the caller inspect or run it themselves via Query.

gospice already exposes this; this brings the .NET SDK in line.
@krinart
krinart enabled auto-merge (squash) August 19, 2026 19:29
@krinart krinart self-assigned this Aug 19, 2026
@krinart krinart changed the title feat: add Nsql and NsqlGenerateSqlAsync for the runtime's /v1/nsql endpoint feat: add NsqlAsync and NsqlGenerateSqlAsync for the runtime's /v1/nsql endpoint Aug 19, 2026
@krinart krinart changed the title feat: add NsqlAsync and NsqlGenerateSqlAsync for the runtime's /v1/nsql endpoint feat: add NsqlAsync and NsqlGenerateSqlAsync for the runtime's /v1/nsql endpoint Aug 19, 2026
@krinart
krinart merged commit e3dd11e into trunk Aug 19, 2026
14 checks passed
@krinart
krinart deleted the feat/nsql branch August 19, 2026 22:02
krinart added a commit that referenced this pull request Aug 19, 2026
#25 merged Nsql support into trunk after this release-prep branch was
created; merge trunk in and document it alongside the other v0.4.0
features.
@krinart krinart mentioned this pull request Aug 19, 2026
krinart added a commit that referenced this pull request Aug 20, 2026
* Prepare release 0.4.0

* docs: add Nsql/NsqlGenerateSqlAsync to v0.4.0 release notes

#25 merged Nsql support into trunk after this release-prep branch was
created; merge trunk in and document it alongside the other v0.4.0
features.

* docs: note that active-queries (#26) and async-queries (#27) are not part of v0.4.0

* Update release notes for v0.4.0

Removed release status section and details about excluded features for v0.4.0.

* Reintroduce mTLS Client Certificate Support in release notes

Reintroduced the Mutual TLS (mTLS) Client Certificate Support section in the release notes for v0.4.0, ensuring clarity on its implementation and usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants