Open fedeci opened 9 months ago
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?
select!
include!
// 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.
pg::prisma
same_crate_module
crate::pg::prisma
This isn't a problem on main, as I use $crate. I may consider backporting it to 0.6.
main
$crate
Hi! Currently
select!
andinclude!
macros can only me used within the same crate. What do you thing about allowing to define a global crate path?The previous links the
pg::prisma
module to the macros. Whensame_crate_module
is true or it is not set, it linkscrate::pg::prisma
.