this post was submitted on 30 Mar 2022
7 points (100.0% liked)
Rust Programming
8438 readers
41 users here now
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I highly recommend it. No matter what you do, you will need to do database migrations, and diesel makes that incredibly easy.
Even for db's with just a few tables, diesel gives you compile time checking, something almost no other ORM supports.
At work, our postgres schema is defined in an *.sql file and whenever we update it, we generate a migration sql script using a tool (that looks like it is not being maintained anymore) called tusker. All our queries are handwritten. It is a nightmare.