Download Latest Version 0.32.6 source code.tar.gz (286.2 kB)
Email in envelope

Get an email when there's a new version of SeaQuery

Home / 0.32.4
Name Modified Size InfoDownloads / Week
Parent folder
0.32.4 source code.tar.gz 2025-04-17 284.6 kB
0.32.4 source code.zip 2025-04-17 394.9 kB
README.md 2025-04-17 1.3 kB
Totals: 3 Items   680.9 kB 0

New Features

  • Added support for temporary tables https://github.com/SeaQL/sea-query/pull/878

    :::rust let statement = Table::create() .table(Font::Table) .temporary() .col( ColumnDef::new(Font::Id) .integer() .not_null() .primary_key() .auto_increment() ) .col(ColumnDef::new(Font::Name).string().not_null()) .take();

    assert_eq!( statement.to_string(MysqlQueryBuilder), [ "CREATE TEMPORARY TABLE font (", "id int NOT NULL PRIMARY KEY AUTO_INCREMENT,", "name varchar(255) NOT NULL", ")", ] .join(" ") ); * Added Value::dummy_value

    :::rust use sea_query::Value; let v = Value::Int(None); let n = v.dummy_value(); assert_eq!(n, Value::Int(Some(0)));

Bug Fixes

  • Quote type properly in AsEnum casting https://github.com/SeaQL/sea-query/pull/880

    :::rust let query = Query::select() .expr(Expr::col(Char::FontSize).as_enum(TextArray)) .from(Char::Table) .to_owned();

    assert_eq!( query.to_string(PostgresQueryBuilder), r#"SELECT CAST("font_size" AS "text"[]) FROM "character""# );

Source: README.md, updated 2025-04-17