Spent the weekend building a Prisma client for Rus...
# madewithprisma
b
Spent the weekend building a Prisma client for Rust inspired by @Luca’s work on prisma-client-go. Would be awesome to see official support for the language but this could be a decent start! https://github.com/Brendonovich/prisma-client-rust Also tweeted about it if you’d like a quick rundown: https://twitter.com/brendonovich1/status/1498316765126103041
prisma rainbow 6
🦀 5
👀 5
r
Wow this looks amazing! I don’t know if you’ve heard about the Python client that I’v’e written but you may find it helpful 🙂 https://github.com/RobertCraigie/prisma-client-py
l
pretty cool! 😄
b
@Robert Craigie Woah I’ve never seen that! Might be handy to cross-reference with 😄
💚 1
j
Nice one @Brendan Allan! How did you implement the CLI part? (My Rust is ... nonexistant, so I could not just find it in the codebase)
(Oh damn, only now realized I could have said "my rust is too rusty, so ...")
😂 2
b
@janpio In the same way as prisma-client-go does: the CLI is fetched from
<http://prisma-photongo.s3-eu-west-1.amazonaws.co|prisma-photongo.s3-eu-west-1.amazonaws.co>
when you first run it and then it’s ran as a child process. I couldn’t find CLI versions for 3.9.2 and 3.10.0 though, is this intentional? I’m guessing the CLI hasn’t changed for those versions?
j
The Go Client probably is not keeping up with the versions there 😕
Can you link me to your download code? Would be interested in reading that.
l
@Brendan Allan They are not updated automatically at this time unfortunately, I have to bump them. I just uploaded 3.9.2 and 3.10.0 though
b
Ahhhh ok, thanks for that!
j
(If I find the time I will split that part out into its own repo and automate it via GH Actions. We are also looking into improving the engines handling around the CLI, so that might also happen - no ETA of course)
👍 1