SeaQL / sea-query

🔱 A dynamic SQL query builder for MySQL, Postgres and SQLite
https://www.sea-ql.org
Other
1.12k stars 182 forks source link

Missing Expr::tbl #779

Closed ctron closed 3 months ago

ctron commented 3 months ago

In the documentation (https://www.sea-ql.org/SeaORM/docs/advanced-query/custom-joins/) there is an example of Expr::tbl, which seems to be missing.

        .column_as(
            Expr::tbl(Alias::new("fruit_alias"), fruit::Column::Name).into_simple_expr(),
            "fruit_name"
        )

I assume either the documentation or the code needs an update.

tyt2y3 commented 3 months ago

Edited, thanks!