Skip to content

danielmesquitta/prisma-to-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Convert Prisma schema to Golang structs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages