Building custom DB Adapter and custom DB driver #24191
Replies: 1 comment 1 reply
-
Hi @ABSanthosh 👋 Thank you for raising this question. Using a CSV file as a data source is not natively supported in Prisma. Prisma is designed to work with databases like PostgreSQL, MySQL, SQLite, SQL Server, and MongoDB. The functionality you described, being able to use You would have to write some custom logic to read and parse the CSV file before writing it using Prisma and storing in any of the supported databases by Prisma ORM. You can also fill out a feature request detailing your usecase. |
Beta Was this translation helpful? Give feedback.
-
Question
Here's my usecase:
Assuming the data store is a csv file:-
prisma db push
prisma.cart.create({...})
to add a new item in the csvprovider
in thedatasource
block and not touch theprisma.cart.xyz({...})
throughout the app.Is this possible?
How to reproduce (optional)
No response
Expected behavior (optional)
No response
Information about Prisma Schema, Client Queries and Environment (optional)
No response
Beta Was this translation helpful? Give feedback.
All reactions