• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 27409347475
65%
develop: 65%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-5566-c66add07bf1044c51e62596f491fe9ce48956b81
DEFAULT BRANCH: develop
Ran 12 Jun 2026 10:15AM UTC
Jobs 1
Files 225
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 Jun 2026 10:12AM UTC coverage: 64.895%. Remained the same
27409347475

push

github

web-flow
feat(cli): port supabase inspect db to native TypeScript (#5554)

## What changed

Ports all of `supabase inspect db` (CLI-1316) from Phase 0 Go proxies to
native TypeScript in the legacy shell. The 13 active subcommands
(`db-stats`, `replication-slots`, `locks`, `blocking`, `outliers`,
`calls`, `index-stats`, `long-running-queries`, `bloat`, `role-stats`,
`vacuum-stats`, `table-stats`, `traffic-profile`) and their 12
deprecated aliases now connect to Postgres directly via the
already-ported `LegacyDbConnection`, run the embedded query, and render
Go-parity Glamour tables — no more shelling out to the Go binary.

### Highlights

- **`LegacyDbSession.query`** added to the connection service +
`@effect/sql-pg` layer (positional `client.unsafe(sql, params)`
binding); the one other object-literal consumer (`test db` mock)
updated.
- **Shared infra at `inspect/db/`**: `LegacyInspectQuerySpec` + the
`legacyRunInspectQuery` runner, pure cell formatters
(`%s`/`%t`/`%d`/`%.1f`/whitespace-collapsed stmt), the 29-entry
internal-schema list + `legacyLikeEscapeSchema`,
`legacyInspectDbRuntimeLayer`, command boilerplate
(`LEGACY_INSPECT_DB_FLAGS` + handler pipe), and the deprecation-notice
builder.
- **One verbatim `<name>.query.ts` spec per active subcommand**;
deprecated aliases route to the active spec — including preserving Go's
quirk where `table-record-counts` warns "table-stats" but runs the
index-stats query.

### Go parity preserved

- `--db-url` / `--linked` / `--local` selector flags (mutually
exclusive; `--linked` default-true derived from absence), no
`--project-ref`. **One deliberate divergence — see below.**
- "Connecting to local/remote database..." diagnostic on stderr
(matching `ConnectByConfig`).
- Statement cells collapse whitespace using Go's RE2 `\s` set
(`[\t\n\f\r ]` + individual `\v`), not JS `\s`.
- `vacuum-stats` renders 9 of 11 columns with the one-shot `-1` → `No
stats`; `bloat` uses the clean 4-column header.
- Deprecated aliases print... (continued)

10681 of 16459 relevant lines covered (64.89%)

7.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27409347475.1 12 Jun 2026 10:15AM UTC 225
64.89
GitHub Action Run
Source Files on build 27409347475
  • Tree
  • List 225
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27409347475
  • 9b3cb172 on github
  • Prev Build on gh-readonly-queue/develop/pr-5564-6c80e311c2ce2dbf4affaf3eb6fbff51bcdd13b3 (#27409247441)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc