-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: Rename prisma
to db
#1077
Comments
I'm leaning against this because it's called |
That makes sense. Just out of curiosity, what was the reason that trpc was renamed then. |
Many users were confused by the boilerplate, one reason was that there were too many things named trpc And there might be some docs changes on tRPC side coming soon ;) |
Is your feature request related to a problem? Please describe.
With the new folder structure from #934 the
trpc
variable was renamedapi
.Copilot autocompleted with the following
ctx.db.example.findMany()
in a tRPC procedure, which made me think couldprisma
also be renamed to something "abstracting" away that it is prisma?Describe the solution you'd like to see
Rename the
prisma
variable insrc/server/db.ts
todb
and theprisma
attribute in the return ofcreateInnerTRPCContext
insrc/server/api/trpc.ts
.Describe alternate solutions
Keep the
prisma
variable nameAdditional information
No response
The text was updated successfully, but these errors were encountered: