Argh. Every time I have an idea for a side project in @rustlang the lack of library support gets in my way. Right now it's soooooo easy to pick Go because of this, so easy that people aren't bothering to write Rust versions of already available Go libraries. #SadRustacean
-
-
Replying to @KevinHoffman @rustlang
The lib I would need to really start using rust in prod is a Django like orm. Where you just create the model and the migration is done for you.
1 reply 1 retweet 1 like -
Have you used Diesel?
@dieselframework1 reply 0 retweets 1 like -
Yes, you need to write the sql by yourself. I'm looking for something that create the DB from the rust coded model.
1 reply 0 retweets 0 likes -
So something like a Serde annotation that generates SQL from a struct?
1 reply 0 retweets 0 likes -
Exactly !
1 reply 0 retweets 0 likes -
Diesel already has annotations; out of curiosity, what would the API for that library look like, and how would it differ?
1 reply 0 retweets 1 like -
Yes it has annotations, but from my understanding we still have to write the SQL part by ourself. It would be nice to code a struct that contains object like Charfield, Integerfield, etc.. and then we just call a command to generate the migration script.
1 reply 0 retweets 1 like
You don’t have to write any sql. You write stuff like this, where NewPost is a struct with the annotation.pic.twitter.com/QFYio56mdP
-
-
Before doing this, you had to write the sql that created the "posts" table. Or maybe I missed something in this lib
1 reply 0 retweets 1 like -
Ah! I forgot about that. Yes, by default, migrations are written by hand. A library for that would be quite nice! Sorry for forgetting :(
0 replies 0 retweets 1 like
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.