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

supabase / cli / 27749479182
65%

Build:
DEFAULT BRANCH: develop
Ran 18 Jun 2026 09:19AM UTC
Jobs 1
Files 227
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

18 Jun 2026 09:11AM UTC coverage: 64.947% (-0.09%) from 65.033%
27749479182

push

github

web-flow
feat(cli): port db dump, query, and schema declarative to native TypeScript (#5586)

## What changed

Replaces the Go-proxy stubs for `db dump`, `db query`, and `db schema
declarative generate`/`sync` with native Effect handlers in the legacy
shell, along with the shared infrastructure they need:

- **Connection layer** (`legacy-db-connection.sql-pg.layer.ts`): raw
`pg` client for the COPY protocol and full-metadata `queryRaw` (command
tag via the `commandComplete` protocol message), reusing the winning
dial target so TLS/fallback/DoH parity holds.
- **Docker run-capture**, db/edge-runtime image resolution, pg-delta SSL
+ Postgres-URL helpers, edge-runtime script layer, SQL splitter,
migration-apply helper.
- **Declarative orchestration**: catalog cache, debug bundles, deno
templates, the gate/flow logic, and the `__catalog` Go seam
(`apps/cli-go/...`) the TS port delegates to for shadow-database
provisioning.

## Why / reviewer context

- **Strict Go parity** is the contract for the legacy shell. Behaviors
that look improvable but match Go are intentional and documented in each
`SIDE_EFFECTS.md` (e.g. `db dump --dry-run` prints the resolved
`PGPASSWORD` in cleartext like Go's `noExec`; `db query --linked`
non-2xx maps to a uniform `unexpected status` message; failed
declarative `sync --apply` leaves the migration file on disk).

- **`-o`/`--output` parity.** Go registers `--output` per command (`db
query` → `json|table|csv`; resource commands →
`env|pretty|json|toml|yaml`). The Effect CLI hoists global flags into a
single tree-wide registry, so a command cannot redeclare an `output`
global to vary its enum. The shared `LegacyOutputFlag` choice is
therefore the *union* of all commands' values, and each command
re-validates against its own Go enum in
`withLegacyCommandInstrumentation` (`outputFormats`), rejecting
out-of-enum values with Go's byte-exact pflag message (`invalid argument
"x" for "-o, --output" flag: must be one of [ … ]`) before the handl... (continued)

10752 of 16555 relevant lines covered (64.95%)

7.38 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27749479182.1 18 Jun 2026 09:19AM UTC 227
64.95
GitHub Action Run
Source Files on build 27749479182
  • Tree
  • List 227
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27749479182
  • a60a5327 on github
  • Prev Build on gh-readonly-queue/develop/pr-5605-17546b34f4557d3c8e0e9bb01e42e0060d4611a0 (#27747325128)
  • Next Build on develop (#27797449018)
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