Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
0.32.2 source code.tar.gz | 2025-02-18 | 280.6 kB | |
0.32.2 source code.zip | 2025-02-18 | 389.8 kB | |
README.md | 2025-02-18 | 1.3 kB | |
Totals: 3 Items | 671.7 kB | 0 |
New Features
-
Added
with_cte
to useWITH
clauses in all statements https://github.com/SeaQL/sea-query/pull/859:::rust let select = SelectStatement::new() .columns([Glyph::Id, Glyph::Image, Glyph::Aspect]) .from(Glyph::Table) .to_owned(); let cte = CommonTableExpression::new() .query(select) .table_name(Alias::new("cte")) .to_owned(); let select = SelectStatement::new() .columns([Glyph::Id, Glyph::Image, Glyph::Aspect]) .from(Alias::new("cte")) .with_cte(cte) .to_owned(); assert_eq!( select.to_string(PostgresQueryBuilder), [ r#"WITH "cte" AS"#, r#"(SELECT "id", "image", "aspect""#, r#"FROM "glyph")"#, r#"SELECT "id", "image", "aspect" FROM "cte""#, ] .join(" ") );
Enhancements
- Added
Expr::column
https://github.com/SeaQL/sea-query/pull/852 - Added Postgres function
DATE_TRUNC
https://github.com/SeaQL/sea-query/pull/825 - Added
INCLUDE
clause for Postgres BTree index https://github.com/SeaQL/sea-query/pull/826
Bug Fixes
- Write empty Postgres array as '{}' https://github.com/SeaQL/sea-query/pull/854