We have covered one example with a single table. In this section, we will create an example with a complex table structure to cover holistic database interaction. We will develop a separate crate for database interaction that covers the functionality of a complex chat application—chat with users, channels, and roles. Also, we will test the functionality we have implemented and show you how to test the database interaction layer of the Rust application.
Complex database structure
Business logic of the example application
In this section, we will learn how to transform data relations into ORM models. We will implement a database interaction crate for a chat application. Imagine, we need to express these data relations...