How to change the ORM to Drizzle.
@repo/database
@repo/database/index.ts
and replace it with the following:
drizzle.config.ts
filedrizzle.config.ts
file in the packages/database
directory with the following contents:
packages/database
folder, run the following command to generate the schema file:
schema.ts
file containing the table definitions and some other files.
page
query in app/(authenticated)/page.tsx
:
apps/studio
:
package.json
package.json
from Prisma to Drizzle. Update the migrate
script to use Drizzle commands: