Setup & Installation
What This Skill Does
Netlify DB provisions a managed Neon Postgres database for Netlify projects without requiring a separate Neon account. It supports raw SQL via @netlify/neon, Drizzle ORM integration, and schema migrations. Each deploy preview branch gets its own isolated database branch.
Unlike wiring up an external Postgres provider manually, Netlify DB auto-provisions the database and sets NETLIFY_DATABASE_URL automatically, with per-branch isolation built into the deploy preview workflow.
When to use it
- Running SQL queries against structured app data from Netlify functions
- Setting up Drizzle ORM schemas and generating typed migrations
- Testing database migrations on deploy preview branches before merging to production
- Querying and filtering relational data that grows over time
- Accessing a Postgres database locally through netlify dev without manual connection setup