Rust: Diesel tutorial with Sqlite



Rust: Diesel tutorial with Sqlite

Rust: Diesel tutorial with Sqlite

I tried going through the diesel tutorial and I ran into an issue that prevented me from using the database they wanted me to use. Given that diesel supports multiple database backends, I decided to go through their tutorial with a different database (Sqlite). In doing so, I had to make a number of changes to make everything work. This video outlines that process.

Links:
– Diesel Tutorial: https://diesel.rs/guides/getting-started/
– Diesel github page: https://github.com/diesel-rs/diesel
– Diesel crate: https://crates.io/crates/diesel
– ORM wiki: https://en.wikipedia.org/wiki/Object-relational_mapping
– Diesel docs — SupportsReturningClause: https://docs.rs/diesel/1.4.5/diesel/backend/trait.SupportsReturningClause.html
– Diesel docs — execute: https://docs.rs/diesel/1.4.5/diesel/query_dsl/trait.RunQueryDsl.html#method.execute

My social links:
– Twitter: https://twitter.com/Crazcalm
– IG: https://www.instagram.com/crazcalm.tech.stack/

Comments are closed.