Categorygithub.com/danielmesquitta/prisma-to-go
repositorypackage
0.0.0-20250206230218-810d5a85c0db
Repository: https://github.com/danielmesquitta/prisma-to-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Prisma to Go

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.

Installation

go install github.com/danielmesquitta/prisma-to-go@latest

Usage

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