Open
Description
Proposed by SeaQL/sea-orm#1227 (comment)
Content
I think there are two types of use cases.
Mapping query result into struct
This serve as a way to execute any SeaQuery statement. And the query result of select statement can be mapped into a struct in Rust.
Basically, as mentioned in this cookbook article: https://www.sea-ql.org/sea-orm-cookbook/003-run-sea-query-statement-on-sea-orm.html
Full SeaORM with access to alter the SeaQuery statement
Setup SeaORM entity with sea-orm-cli
or defining it manually.
Then, You can get a mutable reference of the SeaQuery select statement from sea_orm::Select by QuerySelect::query method. With that you can construct complex query.
Metadata
Metadata
Assignees
Labels
No labels