wrath-rs
wrath-rs copied to clipboard
draft: Usage of Seaorm with SELECT statements:
- Shows a simple select query with a where conditional
get_realm_bind_ip
- A more complex query which needs usage of a join to fetch data in the method
sea_get_all_realms_with_num_characters
In the second example, I've kept both the original method and the new one based on SeaORM to show the “complexity” between both.
Note: Some points I've not worked on, like ActiveModel (which allows change data to be saved later, adds validation logics in the pipeline too if needed), Migrations, and other useful Database Operations from CRUD.