Skip to content

[codex] Use Drizzle for PostgreSQL data access#205

Draft
komagata wants to merge 1 commit into
mainfrom
feat/companies-fjord-direction
Draft

[codex] Use Drizzle for PostgreSQL data access#205
komagata wants to merge 1 commit into
mainfrom
feat/companies-fjord-direction

Conversation

@komagata

Copy link
Copy Markdown
Member

Summary

  • Add Drizzle ORM and a lazy PostgreSQL connection using DATABASE_URL.
  • Add src/server/db schema definitions and src/server/services data-access functions for companies and docs.
  • Move companies/docs data reads and writes away from Supabase table APIs while keeping Supabase Auth in place.
  • Document the local Supabase PostgreSQL DATABASE_URL in .env.local.example.

Validation

  • npm run lint (passes with existing warnings)
  • npm run test:component -- --runInBand
  • npm run build

Notes

Supabase is still used for authentication/session handling. Data access now treats Supabase as a PostgreSQL database through Drizzle.

@vercel

vercel Bot commented May 28, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
agent Ready Ready Preview, Comment May 28, 2026 12:09pm

Request Review

@supabase

supabase Bot commented May 28, 2026

Copy link
Copy Markdown

Updates to Preview Branch (feat/companies-fjord-direction) ↗︎

Deployments Status Updated
Database Thu, 28 May 2026 12:11:43 UTC
Services Thu, 28 May 2026 12:11:43 UTC
APIs Thu, 28 May 2026 12:11:43 UTC

Tasks are run on every commit but only new migration files are pushed.
Close and reopen this PR if you want to apply changes from existing seed or migration files.

Tasks Status Updated
Configurations Thu, 28 May 2026 12:11:53 UTC
Migrations Thu, 28 May 2026 12:11:58 UTC
Seeding Thu, 28 May 2026 12:12:01 UTC
Edge Functions Thu, 28 May 2026 12:12:02 UTC

View logs for this Workflow Run ↗︎.
Learn more about Supabase for Git ↗︎.

@coderabbitai

coderabbitai Bot commented May 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9c1c8a51-0e67-4ca7-a995-9e5c20f4545c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/companies-fjord-direction

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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