NNextron Docs
Modules

Database

Configure the generated database client, schema, and migration workflow.

Choose an ORM

Drizzle generates TypeScript schemas, a typed client, migration helpers, and drizzle.config.ts. It is the direct, SQL-oriented option.

Prisma generates prisma/schema.prisma, a Prisma client wrapper, and related types. It is the schema-first option.

PostgreSQL providers

ProviderGenerated Drizzle driverBest fit
Neon@neondatabase/serverlessServerless PostgreSQL on Neon
SupabasepostgresSupabase PostgreSQL over a standard connection string
LocalpostgresLocal or Docker-hosted PostgreSQL

The local and Supabase paths use drizzle-orm/postgres-js; Neon uses drizzle-orm/neon-http.

Configure the connection

Set the generated variable in .env.local:

DATABASE_URL=postgresql://user:password@localhost:5432/mydb

Apply schema changes

For Drizzle:

pnpm db:push

For Prisma:

pnpm prisma generate
pnpm prisma db push

Run the corresponding generation or migration command whenever the schema changes.

On this page