O'Reilly logo

Mastering Rust by Vesa Kaihlavirta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13 - Data Storage

Rust has plenty of libraries to interact with external storage engines. All established open-source databases have support. A library called r2d2 provides database pooling.

Several ORM-like libraries are being written, the most hip one at the time of writing being Diesel. Diesel uses macros 1.1, giving a query language and a statically checked access to the database: the models are verified at compile time to match with the actual database.

No exercises in this chapter.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required