Overview

Overview of the database configuration for the Next.js Drizzle SaaS Kit.

The SaaS Kit uses PostgreSQL as its default database and Drizzle ORM for type-safe database operations.

Technology Stack:

  • PostgreSQL (default) - Robust relational database (we recommend 16 or later)
  • Drizzle ORM - TypeScript-first ORM
  • Drizzle Kit - Schema management and migrations

Why This Stack?

PostgreSQL

  • Reliable: Battle-tested, ACID-compliant
  • Scalable: Handles millions of rows
  • Feature-rich: JSON, full-text search, extensions
  • Well-supported: Hosted options (Supabase, Neon, Railway)

Drizzle ORM

  • Type-safe: Full TypeScript inference
  • Lightweight: Minimal runtime overhead
  • SQL-like: Easy to learn, close to SQL
  • Great DX: Excellent autocomplete and errors

You can optionally configure any other database supported by Drizzle ORM. We recommend using PostgreSQL - however you have the choice to switch to another database if you prefer.


Next: Drizzle Configuration →