Parser to convert schema.prisma files into Golang structs
I appreciate Prisma’s migration management, but I prefer writing raw SQL queries over using ORMs. To combine the best of both worlds, I created this parser. It allows me to use Prisma's migration management without relying on its ORM.
go install github.com/danielmesquitta/prisma-to-go@latest
prisma-to-go entities --schema ./path/to/schema.prisma --output ./path/to/output/dir
prisma-to-go tables --schema ./path/to/schema.prisma --output ./path/to/output/dir
prisma-to-go triggers --schema ./path/to/schema.prisma