diesel v0.6.0 Release Notes

Release Date: 2016-04-12 // about 8 years ago
  • โž• Added

    • Queries can now be boxed using the into_boxed() method. This is useful for conditionally modifying queries without changing the type. See [BoxedDsl][boxed_dsl] for more details.

    • ๐Ÿ‘ infer_schema! is now supported for use with SQLite3.

    • The maximum table size can be increased to 52 by enabling the huge-tables feature. This feature will substantially increase compile times.

    • The DISTINCT keyword can now be added to queries via the distinct() method.

    • SqliteConnection now implements Send

    ๐Ÿ“„ [boxed_dsl]: https://docs.diesel.rs/diesel/prelude/trait.BoxedDsl.html

    ๐Ÿ”„ Changed

    • ๐Ÿ”€ diesel::result::Error now implements Send and Sync. This required a change in the return type of ToSql and FromSql to have those bounds as well.

    • It is no longer possible to pass an owned value to diesel::insert. insert will now give a more helpful error message when you accidentally try to pass an owned value instead of a reference.

    ๐Ÿ›  Fixed

    • #[insertable_into] can now be used with structs that have lifetimes with names other than 'a'.

    • Tables with a single column now properly return a single element tuple. E.g. if the column was of type integer, then users::all_columns is now (id,) and not id.

    • infer_schema! can now work with tables that have a primary key other than id.

    โœ‚ Removed

    • โœ‚ Removed the no select option for the table! macro. This was a niche feature that didn't fit with Diesel's philosophies. You can write a function that calls select for you if you need this functionality.