Merged
Conversation
Co-authored-by: supabase-cli-releaser[bot] <246109035+supabase-cli-releaser[bot]@users.noreply.github.com>
* feat(db): add `supabase db query` command for executing SQL Add a new CLI command that allows executing raw SQL against local and remote databases, designed for seamless use by AI coding agents without requiring MCP server configuration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(db): address PR review feedback for db query command - Remove unnecessary math.MaxInt guard on fd cast, use //nolint:gosec - Add --db-url, --linked, --local flags with mutual exclusivity - Replace custom jsonReader with bytes.NewReader - Add tests for formatOutput with nil cols/data Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…nts (#4960) feat: add global --agent flag with auto-detection for AI coding agents Introduces a global --agent flag (auto/yes/no) that detects whether the CLI is being invoked by an AI coding agent based on environment variables. When agent mode is active, db query defaults to JSON output with a security envelope (untrusted data boundary). When in human mode, it defaults to table output without the envelope. Explicit --output always takes precedence. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…d performance issues Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds the --db-url flag to db advisors, matching the pattern used by other db commands (lint, diff, dump, etc.). Switches from a dedicated bool to the standard flag.Changed detection for --linked routing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Remove the separate filterByLevel function and use filterLints with
type "all" instead, since matchesType("all") is a no-op. RunLinked
already selects endpoints by type, so the type filter on results is
redundant — one unified filter function is simpler.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…d performance issues (#4957)
* warn * lint --------- Co-authored-by: Kalleby Santos <105971119+kallebysantos@users.noreply.github.com>
fix(db): split advisors session setup from lint query (#4965)
Co-authored-by: supabase-cli-releaser[bot] <246109035+supabase-cli-releaser[bot]@users.noreply.github.com>
* feat(pull): add debug logs for ssl check * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * chore: apply some code clean --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* feat: add db declarative sync with pg-delta * fix: db.go * fix: cli * chore: remove unwanted change * fix: ci * fix: test assertion * fix: some errors * chore: use expermiental as root * fix: apply pr comments Move command under db schema declarative * fix: capture drop extensions in declarative schema * fix: only extract extension drop and create
…tes (#4973) Bumps the go-minor group with 1 update in the / directory: [google.golang.org/grpc](https://github.com/grpc/grpc-go). Bumps the go-minor group with 2 updates in the /pkg directory: [google.golang.org/grpc](https://github.com/grpc/grpc-go) and [github.com/oapi-codegen/runtime](https://github.com/oapi-codegen/runtime). Updates `google.golang.org/grpc` from 1.79.2 to 1.79.3 - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.79.2...v1.79.3) Updates `google.golang.org/grpc` from 1.79.2 to 1.79.3 - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.79.2...v1.79.3) Updates `google.golang.org/grpc` from 1.79.2 to 1.79.3 - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.79.2...v1.79.3) Updates `github.com/oapi-codegen/runtime` from 1.2.0 to 1.3.0 - [Release notes](https://github.com/oapi-codegen/runtime/releases) - [Commits](oapi-codegen/runtime@v1.2.0...v1.3.0) Updates `google.golang.org/grpc` from 1.79.2 to 1.79.3 - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](grpc/grpc-go@v1.79.2...v1.79.3) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-version: 1.79.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-minor - dependency-name: google.golang.org/grpc dependency-version: 1.79.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-minor - dependency-name: google.golang.org/grpc dependency-version: 1.79.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-minor - dependency-name: github.com/oapi-codegen/runtime dependency-version: 1.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-minor - dependency-name: google.golang.org/grpc dependency-version: 1.79.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Andrew Valleteau <avallete@users.noreply.github.com>
stamp: passing down jwks as non internal env
Bumps the npm-major group with 2 updates in the / directory: [https-proxy-agent](https://github.com/TooTallNate/proxy-agents/tree/HEAD/packages/https-proxy-agent) and [tar](https://github.com/isaacs/node-tar). Updates `https-proxy-agent` from 7.0.6 to 8.0.0 - [Release notes](https://github.com/TooTallNate/proxy-agents/releases) - [Changelog](https://github.com/TooTallNate/proxy-agents/blob/main/packages/https-proxy-agent/CHANGELOG.md) - [Commits](https://github.com/TooTallNate/proxy-agents/commits/https-proxy-agent@8.0.0/packages/https-proxy-agent) Updates `tar` from 7.5.11 to 7.5.12 - [Release notes](https://github.com/isaacs/node-tar/releases) - [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md) - [Commits](isaacs/node-tar@v7.5.11...v7.5.12) --- updated-dependencies: - dependency-name: https-proxy-agent dependency-version: 8.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: npm-major - dependency-name: tar dependency-version: 7.5.12 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: npm-major ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps the actions-major group with 1 update: [actions/create-github-app-token](https://github.com/actions/create-github-app-token). Updates `actions/create-github-app-token` from 2 to 3 - [Release notes](https://github.com/actions/create-github-app-token/releases) - [Commits](actions/create-github-app-token@v2...v3) --- updated-dependencies: - dependency-name: actions/create-github-app-token dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major dependency-group: actions-major ... Signed-off-by: dependabot[bot] <support@github.com>
…actions-major group (#4954)
…dates (#4979) Bumps the docker-minor group with 7 updates in the /pkg/config/templates directory: | Package | From | To | | --- | --- | --- | | postgrest/postgrest | `v14.5` | `v14.6` | | supabase/studio | `2026.03.04-sha-0043607` | `2026.03.16-sha-5528817` | | supabase/edge-runtime | `v1.71.0` | `v1.73.0` | | supabase/gotrue | `v2.187.0` | `v2.188.1` | | supabase/realtime | `v2.78.10` | `v2.78.15` | | supabase/storage-api | `v1.41.8` | `v1.44.7` | | supabase/logflare | `1.34.7` | `1.34.14` | Updates `postgrest/postgrest` from v14.5 to v14.6 Updates `supabase/studio` from 2026.03.04-sha-0043607 to 2026.03.16-sha-5528817 Updates `supabase/edge-runtime` from v1.71.0 to v1.73.0 Updates `supabase/gotrue` from v2.187.0 to v2.188.1 Updates `supabase/realtime` from v2.78.10 to v2.78.15 Updates `supabase/storage-api` from v1.41.8 to v1.44.7 Updates `supabase/logflare` from 1.34.7 to 1.34.14 --- updated-dependencies: - dependency-name: postgrest/postgrest dependency-version: v14.6 dependency-type: direct:production dependency-group: docker-minor - dependency-name: supabase/studio dependency-version: 2026.03.16-sha-5528817 dependency-type: direct:production dependency-group: docker-minor - dependency-name: supabase/edge-runtime dependency-version: v1.73.0 dependency-type: direct:production dependency-group: docker-minor - dependency-name: supabase/gotrue dependency-version: v2.188.1 dependency-type: direct:production dependency-group: docker-minor - dependency-name: supabase/realtime dependency-version: v2.78.15 dependency-type: direct:production dependency-group: docker-minor - dependency-name: supabase/storage-api dependency-version: v1.44.7 dependency-type: direct:production dependency-group: docker-minor - dependency-name: supabase/logflare dependency-version: 1.34.14 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: docker-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julien Goux <hi@jgoux.dev>
#4986) Bumps the go-minor group with 3 updates in the / directory: [github.com/getsentry/sentry-go](https://github.com/getsentry/sentry-go), [github.com/slack-go/slack](https://github.com/slack-go/slack) and [github.com/zalando/go-keyring](https://github.com/zalando/go-keyring). Updates `github.com/getsentry/sentry-go` from 0.43.0 to 0.44.1 - [Release notes](https://github.com/getsentry/sentry-go/releases) - [Changelog](https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md) - [Commits](getsentry/sentry-go@v0.43.0...v0.44.1) Updates `github.com/slack-go/slack` from 0.19.0 to 0.20.0 - [Release notes](https://github.com/slack-go/slack/releases) - [Changelog](https://github.com/slack-go/slack/blob/master/CHANGELOG.md) - [Commits](slack-go/slack@v0.19.0...v0.20.0) Updates `github.com/zalando/go-keyring` from 0.2.6 to 0.2.8 - [Release notes](https://github.com/zalando/go-keyring/releases) - [Commits](zalando/go-keyring@v0.2.6...v0.2.8) --- updated-dependencies: - dependency-name: github.com/getsentry/sentry-go dependency-version: 0.44.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-minor - dependency-name: github.com/slack-go/slack dependency-version: 0.20.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-minor - dependency-name: github.com/zalando/go-keyring dependency-version: 0.2.8 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julien Goux <hi@jgoux.dev>
jgoux
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
supabase db querycommand for executing SQL (feat(db): addsupabase db querycommand for executing SQL #4955)