Brendonovich / prisma-client-rust

Type-safe database access for Rust
https://prisma.brendonovich.dev
Apache License 2.0
1.75k stars 106 forks source link

partial_unchecked Fields should be public #311

Closed tingfeng-key closed 1 year ago

tingfeng-key commented 1 year ago

When it is called in other libraries in my workspace, the field cannot be assigned a value because it is private

tingfeng-key commented 1 year ago

When I assign values to the generated code externally, it is still a private field

tingfeng-key commented 1 year ago

I will place the code generated by PCR in one service's scratch in the workspace, and then use it in another scratch called cli, but it will still prompt for field liberalization

image

image

image image

The Prisma file is the code generated by PCR

Brendonovich commented 1 year ago

Try cargo update -p prisma-client-rust, should fix it

tingfeng-key commented 1 year ago

Okay, thank you. I don't quite understand why I changed the tag version number in Cargo.toml to 0.6.8 and it doesn't take effect, and I have executed cargo clean