Prisma generator that produces protobuf .proto files with CRUD service definitions for all tables in a MySQL database. Current version 0.1.11, last updated October 2023. Designed for microservices exposing gRPC endpoints directly from a Prisma schema. Only supports MySQL datasources. Different from generic proto generators by tightly coupling to Prisma's MySQL introspection, outputting service, message, and enum definitions automatically. Requires Node.js >= 18.0. Release cadence is irregular.
npm install prisma-generator-proto-ms-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure prisma generator in schema.prisma with MySQL datasource and run prisma generate to produce proto files for each model.
Ensure datasource provider is 'mysql'.
Rename models to use PascalCase without underscores.
Add output = "../proto" in generator configuration.
npm install prisma-generator-proto-ms-mysql
Update to >=0.1.0 and add output option, or remove output argument.
Create the output directory or provide an absolute path.