vpjm
vpjm
PPrisma
Created by vpjm on 1/3/2025 in #help-and-questions
prisma generate --sql and seeding
Hi, How can I use raw SQL to seed my database in Prisma? I would like to use the new SQL feature, but it seems to not work well with nested folders. ( prisma > sql > [version] > seed > [file].sql ) Also, I tried to read the content of SQL files, but I don't know why, when they are read, they aren't syntactically correct anymore to be called in executeRawUnsafe.
10 replies