zzau13 / prisma-schema-transformer Goto Github PK
View Code? Open in Web Editor NEWPrisma schema post-processor for change names and fields to camelcase and pluralize for push db to a prisma schema
License: MIT License
Prisma schema post-processor for change names and fields to camelcase and pluralize for push db to a prisma schema
License: MIT License
Currently, the database specific fields (such as @db.Timestamp(6)
or @db.Uuid()
) is removed after transform. Is there any way to keep them?
Add transform modifiers by options.
Object<regular expression string -> transform function(string) -> string>
Thanks to @ebg1223 for the idea.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Warning
These dependencies are deprecated:
Datasource | Name | Replacement PR? |
---|---|---|
npm | @vitest/coverage-c8 |
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)@vitest/coverage-c8
, vitest
).github/workflows/test.yml
actions/checkout v4@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
actions/setup-node v4
pnpm/action-setup v4.0.0
actions/cache v4
codecov/codecov-action v4
package.json
@prisma/engine-core ^4.3.1
@prisma/generator-helper ^5.0.0
@prisma/internals ^5.0.0
camelcase ^8.0.0
commander ^12.0.0
dotenv ^16.0.2
immer ^10.0.0
pluralize ^8.0.0
prisma ^5.0.0
ts-toolbelt ^9.6.0
@commitlint/cli 19.3.0
@commitlint/config-conventional 19.2.2
@release-it/conventional-changelog 8.0.1
@types/jest 29.5.12
@types/node 20.14.9
@types/pluralize 0.0.31
@typescript-eslint/eslint-plugin 7.0.1
@typescript-eslint/parser 7.0.1
@vitest/coverage-c8 0.24.4
dotenv-cli 7.4.2
eslint 9.6.0
eslint-config-prettier 9.1.0
eslint-plugin-prettier 5.1.3
fp-ts 2.16.7
husky 9.0.11
lint-staged 15.2.7
prettier 3.3.2
prettier-plugin-prisma 5.0.0
release-it 17.4.1
typescript 5.5.3
vitest 1.1.1
node >=16.17
.nvmrc
When running this transformer, the previewFeatures
and binaryTargets
options are being removed from the client generator.
The database can contain a list of scalars (e.g. string[]
). Prisma does not support these as mentioned at the end of this page. Handle this gracefully instead of crashing.
See linked PR for the fix.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.