Learn some general best practices for interacting with SQL databases, and walk through how to use Diesel for implementing these practices in your Rust application.
00:00 Introduction
01:22 Rustflix Demo
01:32 Diesel CLI
02:24 .env
02:50 Diesel Setup
03:04 Schema Migrations
06:33 schema.rs
06:43 Cargo.toml & Modules
07:15 Establishing A Database Connection
08:05 Video Model & Diesel Model Macros
10:05 Creating, Updating, and Showing Videos
13:20 Verifying Video Operations
13:54 Thoughts On Productionizing
Code for the project in this video can be found here: https://github.com/Me163/youtube/tree...
Stuff I use to make these videos - I absolutely love all of these products. Using these links is an easy way to support the channel, thank you so much if you do so!!!
Camera: Canon EOS R5 https://amzn.to/3CCrxzl
Monitor: Dell U4914DW 49in https://amzn.to/3MJV1jx
Lens: Sigma 24mm f/1.4 DG HSM Art for Canon EF https://amzn.to/3hZ10mz
SSD for Video Editing: VectoTech Rapid 8TB https://amzn.to/3hXz9TM
Microphone: Rode NT1-A https://amzn.to/3vWM4gL
Microphone Interface: Focusrite Clarett+ 2Pre https://amzn.to/3J5dy7S
Tripod: JOBY GorillaPod 5K https://amzn.to/3JaPxMA
Keyboard: Redragon Mechanical Gaming Keyboard https://amzn.to/3I1A7ZD
Mouse: Razer DeathAdder https://amzn.to/3J9fYCf
Computer: 2021 Macbook Pro https://amzn.to/3J7FXtW
Caffeine: High Brew Cold Brew Coffee https://amzn.to/3hXyx0q
More Caffeine: Monster Energy Juice, Pipeline Punch https://amzn.to/3Czmfox