You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

drizzle-prisma-generator

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drizzle-prisma-generator

Generate Drizzle schema from Prisma schema

0.1.7
latest
Source
npmnpm
Version published
Weekly downloads
7.7K
5.91%
Maintainers
5
Weekly downloads
 
Created
Source

Drizzle Prisma Generator

Automatically generate Drizzle schema from Prisma schema

Usage

  • Install generator: pnpm add -D drizzle-prisma-generator
  • Add generator to prisma:
generator drizzle {
  provider = "drizzle-prisma-generator"
  output = "./src/schema.ts"
}

:warning: - if output doesn't end with .ts, it will be treated like a folder, and schema will be generated to schema.ts inside of it.
:warning: - binary types in MySQL, PostgreSQL are not yet supported by drizzle-orm, therefore will throw an error.
:warning: - generator only supports postgresql, mysql, sqlite data providers, others will throw an error.

  • Install drizzle-orm: pnpm add drizzle-orm
  • Import schema from specified output file\folder
  • Congratulations, now you can use Drizzle ORM with generated schemas!

Keywords

drizzle

FAQs

Package last updated on 13 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.