Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upBetter Documentation #853
Comments
Eijebong
added
the
documentation
label
Apr 9, 2017
This comment has been minimized.
|
Any concrete ideas what the documentation needs to cover that is currently missing? We want to add more guides (there is one PR to add a guide on updates), and any indicator what is needed the most would be helpful. :) |
This comment has been minimized.
|
@killercup
|
This comment has been minimized.
|
I'd recommend not just writing more guides, but writing a structured documentation like above that can also be used as a sort of reference to quickly look up how to do certain things. Especially with a ORM that's very valuable, imo. I'm not in love with how https://github.com/azerupi/mdBook looks, but it's good enough for Rust, so using that might be an option, and certainly less work than building something custom. |
This comment has been minimized.
alanhdu
commented
Apr 9, 2017
•
|
To add my two cents: The single biggest thing that'd make Diesel easier to learn is to add way more examples. Basic In particular:
|
This comment has been minimized.
alanhdu
commented
Apr 9, 2017
|
Oh and also... I'm not sure how feasible this is, but I'd love a guide on how to read Diesel's compilation errors. They get pretty nasty, and sometimes I honestly have no clue how to use them to figure out what's wrong. |
This comment has been minimized.
|
To suuport what @alanhdu said, i think the |
This comment has been minimized.
DavidBM
commented
Apr 14, 2017
•
|
One think that I miss, is a list of all possible items. Like possible annotations for models in the struct. Sometimes, just a list of all the items helps as an index to see the possibilities. Is not to make the information more easy to read, is to have a entry point to see all the information. Now I'm searching if there is any annotation for telling diesel that ignore one field of the struct. I'm searching in the issues, in google, in the docs, but I don't find any place with all the possible functions, macros, annotations, etc of Diesel. In other frameworks I can read the full documentation in case of not finding the answer, here... there is no "all documentation". As @alanhdu says in #853 (comment) in the last point, a list of things that can be done. |
This comment has been minimized.
blanham
commented
Jun 1, 2017
|
Perhaps it might make sense to create a new repo specifically for the diesel.rs homepage? At the very least the existing guide could be expanded. |
This comment has been minimized.
|
The repo homepage is sgrif/diesel.rs-website |
killercup
added this to Guides
in Documentation
Jun 7, 2017
This comment has been minimized.
This comment has been minimized.
|
Update - I'm currently working on updating the |
This comment has been minimized.
aliyazdani
commented
Dec 6, 2017
|
I'd love to see more docs too - especially for sqlite. This is my first try at Diesel with Sqlite3. Most of the examples I find are for PG and unfortunately we don't have that option atm. The examples on the repo for sqlite are extremely basic. I managed to get my inserts and updates working but a basic select query is generating a ton of compiler errors that are hard to understand. I can't imagine what a join requires. I'd be happy to lend a hand if needed (even though I'm still a Rust noob at this point). Thanks! |
This comment has been minimized.
|
Once all open doc PRs today are merged, we will be able to add I realize not everything is documented as perfectly as it could be. If you have any concrete places where the documentation could be improved (even if it's just "I couldn't find/figure out X, here's where I looked") please open an issue. However, I think we have sufficiently resolved the issue of "our docs generally suck" enough to close this. |
sgrif
closed this
Dec 16, 2017
This comment has been minimized.
wangzhengqing
commented
Aug 2, 2018
|
i have readed the document. but i still dont know how to use "use schema::posts::dsl::*". diesel created these models or i have to write by myself? i really dont know how to do it. |
theduke commentedApr 9, 2017
I think lack of documentation is a huge road block for Diesel adoption.
Each time I try to get started with Diesel, I have to struggle hard to not drop it and just use one of the raw database libraries.
The guide is VERY basic, and the source docs don't offer much either.
I would imagine I'm not the only one suffering from such frustration.
As a positive example that could be emulated, I think Rocket has managed a very decent, well structured guide that makes it easy to get started with and use.