News for hackers. Stuff that matters.
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by dikaiosune on Friday February 05, 2016 @06:58PM (#11045663)
In the getting started guide, it looks like they use an as-yet-non-existent Post struct to create the migration SQL. Where is the migration CLI getting the struct's fields from if it hasn't yet been written in that part of the tutorial? Am I missing something obvious?
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by rabidferret on Friday February 05, 2016 @07:13PM (#11045750)
The CLI just generates the file structure. We fill in the SQL manually as part of the guide, and then create the structs immediately after that.
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by dikaiosune on Friday February 05, 2016 @09:27PM (#11046216)
What I get for reading too quickly! Thanks for clarifying.
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by rabidferret on Friday February 05, 2016 @09:45PM (#11046280)
It wasn't super clear, anyway. Fixed in https://github.com/sgrif/diesel.rs-website/pull/5 :)
Re:Diesel: A Safe, Extensible ORM and Query Builder for Rust by steveklabnik on Friday February 05, 2016 @07:00PM (#11045676)
You're supposed to write that SQL yourself, I believe. I'll file an issue to clear this up either way.