rust-cookbook
rust-cookbook copied to clipboard
Cookbook ideas for "Database" section
trafficstars
Some ideas here are not accepted yet, please comment here and wait for separate "example" implementation issues before submitting a PR!
Lets' discuss about new recipes to highlight databases in Rust (databases, ORM, database interactions, etc.).
Ideas
Here are some general ideas that could be implemented as recipes:
- Connect to a database
- Manipualte tables and tuples
- Run "simple" and "complex" queries
- Execute transactions
- A connection pool maintains a set of open connections to a database, handing them out for repeated use.
Crates worth considering
Some popular crates, that will help you to implement recipes:
diesel - 1982 stars postgres - 829 stars redis - 674 stars r2d2 - 242 stars rusqlite - 236 stars mysql - 184 stars
Feel free to add more ideas, or to propose precise more detailed examples that can be implemented!
Thanks!
FYI, diesel is v0.99.0 (It's basically 1.0 except it's not).
I want to get this up for hacktoberfest.