Skip to content

encapsulate database logic inside prisma/ by including lib/prisma.ts#102

Closed
abdallah-zaghloul wants to merge 1 commit intoprisma:mainfrom
abdallah-zaghloul:patch-1
Closed

encapsulate database logic inside prisma/ by including lib/prisma.ts#102
abdallah-zaghloul wants to merge 1 commit intoprisma:mainfrom
abdallah-zaghloul:patch-1

Conversation

@abdallah-zaghloul
Copy link

encapsulate database logic inside prisma/ by including lib/prisma.ts to be used later inside prisma/seed.ts as defaults for prisma cli becasue change prismaRoot & prismaSchemaPath conflict with npx prisma --schema defaults

encapsulated dir shape:
prisma/
├── lib/ # (folder for Prisma client helper / singleton)
├── migrations/ # (Prisma migration history)
├── dev.db # SQLite database file
├── schema.prisma # Prisma schema definition
└── seed.ts # Database seeding script

encapsulate database logic inside prisma/ by including lib/prisma.ts to be used later inside prisma/seed.ts as defaults for prisma cli becasue change prismaRoot & prismaSchemaPath conflict with npx prisma --schema defaults

encapsulated dir shape:
    prisma/
    ├── lib/                # (folder for Prisma client helper / singleton)
    ├── migrations/         # (Prisma migration history)
    ├── dev.db              # SQLite database file
    ├── schema.prisma       # Prisma schema definition
    └── seed.ts             # Database seeding script
@vercel
Copy link

vercel bot commented Sep 8, 2025

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

Project Deployment Preview Comments Updated (UTC)
nuxt-prisma Error Error Sep 8, 2025 5:20am

@AmanVarshney01
Copy link
Member

Sadly, we are deprecating this module. You can read more about the explanation here

How to use Nuxt with Prisma 7 - https://www.prisma.io/docs/guides/nuxt

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.

2 participants