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 thedistinct()
method.SqliteConnection
now implementsSend
๐ [boxed_dsl]: https://docs.diesel.rs/diesel/prelude/trait.BoxedDsl.html
๐ Changed
๐
diesel::result::Error
now implementsSend
andSync
. This required a change in the return type ofToSql
andFromSql
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 notid
.infer_schema!
can now work with tables that have a primary key other thanid
.
โ Removed
- โ Removed the
no select
option for thetable!
macro. This was a niche feature that didn't fit with Diesel's philosophies. You can write a function that callsselect
for you if you need this functionality.