Prisma Case Format

screenshot of Prisma Case Format
prisma

Give your introspected schema.prisma sane naming conventions

Overview

Prisma-case-format is a specialized tool designed to streamline the management of database schema conventions, particularly when using Prisma. It addresses a common challenge developers face when integrating differing case conventions in their database and application code. This tool simplifies the process of generating consistent client libraries tailored to specific needs, ensuring that your code remains clean and comprehensible.

The project is open for new maintainers, which indicates an opportunity for those passionate about contributing to its evolution. While the original creator expresses a lack of interest in ongoing maintenance, the practical functionality of this tool remains a valuable resource for developers looking to manage case logic across their schemas effectively.

Features

  • Case Convention Management: Easily specify and enforce case conventions for tables, fields, and enums across your Prisma schema.
  • Dry Run Support: Use the --dry-run feature to preview changes before applying them, allowing for careful validation of case conventions.
  • Drift Protection: Ensure your schema stays consistent over time by applying checks against accidental changes in case conventions.
  • Integration with NextAuth.js: Protect your NextAuth.js tables from unintended modifications by using the --uses-next-auth flag.
  • Flexible Configuration: Customize case management with options for specifying conventions on a per-model or per-field basis.
  • Idempotent Linter: Utilize prisma-case-format as a linter to confirm that your case conventions have not deviated unexpectedly.
  • Comprehensive Usage: Adapt the tool as a one-time migration assistant or integrate it into your ongoing CI/CD pipeline for continuous case management.
prisma
Prisma

Prisma is a server-side library that helps developers read and write data to the database in an intuitive, efficient and safe way.

fullstack
Fullstack

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.