Skip to content

Add Drizzle ORM and Neon database setup.#2

Merged
supermarios77 merged 1 commit into
mainfrom
feature/db-setup-drizzle-neon
Feb 20, 2026
Merged

Add Drizzle ORM and Neon database setup.#2
supermarios77 merged 1 commit into
mainfrom
feature/db-setup-drizzle-neon

Conversation

@supermarios77
Copy link
Copy Markdown
Owner

This PR introduces the database layer for Linglix using Drizzle ORM and Neon serverless Postgres.

Changes:

  • Installed drizzle-orm, @neondatabase/serverless, drizzle-kit
  • Added drizzle.config.ts for schema/migrations
  • Defined minimal initial schema (src/db/schema.ts) with basic tables
  • Created DB client (src/db/index.ts) using neon-http driver (serverless-friendly)

Why this way:

  • Drizzle for type-safe, lightweight, SQL-first ORM (edge-compatible, fast cold starts)
  • Neon for serverless Postgres (scales to zero, low cost early)
  • neon-http driver chosen for simplicity in Next.js API routes/server components

Testing:

  • Local: pnpm drizzle-kit push:pg → tables appear in Neon console
  • Queried users table via simple API route → works in dev
  • No breaking changes to existing code

Next steps:

  • Integrate with BetterAuth (auth tables/schema)

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
linglix Error Error Feb 20, 2026 10:21am

@supermarios77 supermarios77 merged commit 644b58a into main Feb 20, 2026
6 of 7 checks passed
@supermarios77 supermarios77 deleted the feature/db-setup-drizzle-neon branch February 20, 2026 10:41
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