diesel v0.7.0 Release Notes

Release Date: 2016-08-01 // over 7 years ago
  • โž• Added

    ๐Ÿ”„ Changed

    • ๐Ÿš€ Diesel now targets nightly-2016-07-07. Future releases will update to a newer nightly version on the date that Rust releases.

    • diesel_codegen has been split into two crates. diesel_codegen and diesel_codegen_syntex. See this commit for migration information.

    • Most structs that implement Queryable will now also need #[derive(Identifiable)].

    • infer_schema! on SQLite now accepts a larger range of type names

    • types::VarChar is now an alias for types::Text. Most code should be unaffected by this. PG array columns are treated slightly differently, however. If you are using varchar[], you should switch to text[] instead.

    • Struct fields annotated with #[column_name="name"] should be changed to #[column_name(name)].

    • ๐Ÿ‘€ The structure of DatabaseError has changed to hold more information. See https://docs.diesel.rs/diesel/result/enum.Error.html and https://docs.diesel.rs/diesel/result/trait.DatabaseErrorInformation.html for more information

    • โšก๏ธ Structs which implement Identifiable can now be passed to update and delete. This means you can now write delete(&user).execute(&connection) instead of delete(users.find(user.id)).execute(&connection)

    ๐Ÿ“„ [associations-module]: https://docs.diesel.rs/diesel/associations/index.html

    ๐Ÿ›  Fixed

    • &&[T] can now be used in queries. This allows using slices with things like #[insertable_into].