Comments (3)
I think we ended up managing table & enum case simultaneously, so at this point it's "because legacy".
we could probably add --map-enum-case
to run things separately, I just need to make sure that doesn't break backwards compat
from prisma-case-format.
That would be great!
Do you have time to do this in 1-2 weeks, or will my help be needed?
from prisma-case-format.
I'd love your help! I'm swamped at work this week with some new production rollouts.
If you decide to just implement --map-enum-case
without preserving backwards compat that's perfectly fine, we'll just trip a 2.0 version bc there are some people using this in production CI/CD systems.
red-green TDD works pretty well in this repo, haven't had any complaints yet. I think the pattern for test cases is pretty easy to repeat, but let me know if it looks weird. Also, I'm happy to provide some directions on what I think needs to be updated, but my gut feeling is that it'll look pretty clear after a bit.
Oh, and I think both yarn
and pnpm
work, if you don't want to use npm
.
from prisma-case-format.
Related Issues (20)
- Add --map-field-case / --map-table-case option HOT 5
- "prisma-case-format" command not found HOT 2
- enum definitions do not stay PascalCase when running 'prisma db pull' HOT 8
- Doesn't map after first table HOT 7
- Exclude the next code from fomatting. HOT 3
- TypeError: Cannot read properties of null (reading 'groups') HOT 4
- Pluralize table names HOT 8
- Some `@@index` cannot be converted HOT 4
- `Unsupported` fields are parsed incorrectly HOT 5
- Enums are not mapped HOT 5
- Add a LICENSE file HOT 4
- Ignore Command & Excluding Enums HOT 4
- Broken output for pascal case HOT 4
- New version of package have old content HOT 1
- No @@map created for enums HOT 5
- Possibility to skip some models HOT 23
- Q. How to use this tool ? HOT 8
- Retain @map annotations for fields with distinct DB column names HOT 6
- Add option to ignore pluralize option per field HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prisma-case-format.