Skip to content

Local PostgreSQL container for query analysis / validation#4514

Open
nikolayk812 wants to merge 4 commits into
sqlc-dev:mainfrom
nikolayk812:4513-pg-tc
Open

Local PostgreSQL container for query analysis / validation#4514
nikolayk812 wants to merge 4 commits into
sqlc-dev:mainfrom
nikolayk812:4513-pg-tc

Conversation

@nikolayk812

@nikolayk812 nikolayk812 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Add a testcontainers_image field to the database config block. When set, sqlc automatically starts a local PostgreSQL Docker container, applies schema migrations, and uses it for analysis — then tears it down when done.

database:
      testcontainers_image: "postgres:18-alpine"

#4513

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant