-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Co-author: Drizzle #168
base: main
Are you sure you want to change the base?
Co-author: Drizzle #168
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
throw new Error('Missing DATABASE_URL environment variable.'); | ||
} | ||
|
||
const client = neon(databaseUrl); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as of our latest API improvements - you can do
import { drizzle } from "drizzle-orm/neon-http";
const db = drizzle(process.env.DATABASE_URL);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be updated? https://orm.drizzle.team/docs/tutorials/drizzle-with-neon#connect-drizzle-orm-to-your-database
This pull request includes updates to the documentation for switching databases in the
next-forge
project. The primary focus is on adding a guide for switching from Prisma to Drizzle and renaming the existing database guide to focus on PlanetScale.