Brendonovich / prisma-client-rust

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

derive clone for generated client #249

Closed tbillington closed 1 year ago

tbillington commented 1 year ago

Derives Clone for the generated PrismaClient. PrismaClients only field implements Clone so this seems pretty uncontroversial.

Rationale is to share access to the database with different parts of the program without wrapping in Arc.

Brendonovich commented 1 year ago

I'd rather encourage people to Arc their clients, since PrismaClientInternals already contains multiple Arcs