What problem does it solve?
Setting up and managing Drizzle ORM with Neon Postgres, especially for migrations and schema changes, can be intricate. This Skill streamlines the entire process, from initial project setup to complex schema modifications, ensuring your database interactions are type-safe and efficient without manual configuration headaches.
Core Features & Use Cases
- Guided Setup: Provides step-by-step guides for new projects, existing project integration, and schema-only workflows.
- Automated Migrations: Generates and applies database migrations from schema changes.
- Connection Adapters: Configures Drizzle with the correct Neon adapter (HTTP for edge, WebSocket for Node.js).
- Use Case: Start a new Next.js project with Drizzle ORM and Neon, letting the AI handle dependency installation, configuration, schema generation, and migration scripts, so you can focus on building your application logic.
Quick Start
Example: Generate Drizzle migrations
npx drizzle-kit generate
Example: Apply pending migrations
export DATABASE_URL="your_neon_url" &&
npx drizzle-kit migrate