rtk-ai/rtk

[proxy] add rtk sqlcmd (SQL Server CLI) — analogous to rtk psql

Open

#1,832 创建于 2026年5月11日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Rust (2,914 fork)batch import
area:clienhancementhelp wantedplatform:windowspriority:medium

仓库指标

Star
 (48,085 star)
PR 合并指标
 (平均合并 11天 1小时) (30 天内合并 45 个 PR)

描述

Use case

rtk psql exists and compresses Postgres table output. The Microsoft sqlcmd CLI (MSSQL) produces structurally identical noise — column header separators, padding, trailing whitespace — and is heavily used in .NET / Windows-server stacks.

Frequency

rtk discover on a 30-day Claude Code history: 208 invocations of sqlcmd, currently completely unfiltered.

Suggested behaviour (mirroring rtk psql)

  • Strip ASCII table borders / dash separator rows.
  • Compress repeated whitespace inside cells.
  • Honour -Q/-i flags transparently.
  • Optionally: prefer JSON via sqlcmd -y 0 + a JSON-aware variant, similar to what rtk aws does with --output json.

Filename suggestion: src/proxies/sqlcmd.rs, registered analogously to psql.rs.

贡献者指南