Skip to content

feat: driver-owned SQL Server query templates - #31

Merged
debba merged 2 commits into
mainfrom
feat/table-query-templates
Sep 29, 2026
Merged

debba merged 2 commits into
mainfrom
feat/table-query-templates

Conversation

@debba

@debba debba commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Opt into the optional get_table_query_template contract with capabilities.table_query_templates.
  • Generate SELECT previews using TOP, schema qualification and bracket-escaped identifiers.
  • Generate guarded UPDATE/DELETE previews; UPDATE uses unique host-editor :value_N placeholders.
  • Keep template generation pure: no database connection and no statement execution.
  • Preserve existing RPC contracts and min_runtime_version.

Dependencies and issue scope

Refs #26. Stacked on #30 (base: fix/26-preserve-explicit-row-limits); merge the pagination fix first, then retarget this PR to main if necessary.
Matching host change: TabularisDB/tabularis#818.
The complete Generate SQL fix requires the host extension and both plugin changes.

Validation

  • 218 unit tests and 3 host-model conformance tests passed.
  • 3 live SQL Server pagination tests passed, including generating a SELECT template and executing it with host pagination enabled.
  • Added captured JSON-RPC fixture and updated the conformance capture script.
  • cargo clippy --all-targets -- -D warnings
  • cargo fmt --all -- --check

Registry rollout

See docs/query-templates.md. Tabularium administrators must register optional capabilities.table_query_templates before publishing so lenient manifest ingestion does not strip it. No registry DB migration, new endpoint or SDK change. No production registry configuration has been changed.

@debba debba added the prerelease:beta Publish the next release on the beta prerelease channel label Sep 29, 2026
@debba
debba changed the base branch from fix/26-preserve-explicit-row-limits to main September 29, 2026 07:51
@github-actions

Copy link
Copy Markdown

Version suggestion

Based on this PR's title (feat) and the prerelease:beta label:

Current 1.0.0-beta.2
Suggested next tag v1.0.0-beta.3

This is informational only — no tag or release is created automatically yet.

@debba
debba marked this pull request as ready for review September 29, 2026 07:55
@debba
debba merged commit fc3e274 into main Sep 29, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

prerelease:beta Publish the next release on the beta prerelease channel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant