prisma-client-rust
prisma-client-rust copied to clipboard
select! and include! from different crate
Hi! Currently select!
and include!
macros can only me used within the same crate.
What do you thing about allowing to define a global crate path?
// schema.prisma
generator client {
provider = "cargo prisma"
output = "../pg/src/prisma.rs"
module_path = "pg::prisma"
same_crate_module = false // defaults to true to be non-breaking
}
The previous links the pg::prisma
module to the macros. When same_crate_module
is true or it is not set, it links crate::pg::prisma
.
This isn't a problem on main
, as I use $crate
. I may consider backporting it to 0.6.