rust-cookbook icon indicating copy to clipboard operation
rust-cookbook copied to clipboard

Cookbook ideas for "Database" section

Open ludwigpacifici opened this issue 8 years ago • 3 comments
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!

ludwigpacifici avatar Nov 21 '17 15:11 ludwigpacifici

Thanks!

budziq avatar Nov 22 '17 10:11 budziq

I want to get this up for hacktoberfest.

AndyGauge avatar Oct 01 '18 15:10 AndyGauge