You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+61-3Lines changed: 61 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,11 @@ Increasing the minimal supported Rust version will always be coupled at least wi
10
10
11
11
## Unreleased
12
12
13
+
## [2.2.0] 2024-05-31
14
+
13
15
### Added
14
16
15
-
* Support `[print_schema] exclude_custom_type_definitions=["Vector"]`. If a `custom type` matches one element on the list it's skipped.
17
+
* Support `[print_schema] exclude_custom_type_definitions = ["Vector"]`. If a `custom type` matches one element on the list it's skipped.
16
18
* Added automatic usage of all sqlite `rowid` aliases when no explicit primary key is defined for `print-schema`
17
19
* Added a `#[dsl::auto_type]` attribute macro, allowing to infer type of query fragment functions
18
20
* Added the same type inference on `Selectable` derives, which allows skipping specifying `select_expression_type` most of the time, in turn enabling most queries to be written using just a `Selectable` derive.
@@ -23,13 +25,64 @@ Increasing the minimal supported Rust version will always be coupled at least wi
23
25
* Add `sqlite-integer-primary-key-is-bigint` configuration option, usable with SQLite 3.37 or above, allowing to use `BigInt` for `INTEGER PRIMARY KEY` columns in SQLite for tables without the `WITHOUT ROWID` attribute ([SQLite doc](https://www.sqlite.org/lang_createtable.html#rowid)).
24
26
* Support for multiple `print_schema` entry in `diesel.toml` (e.g. `[print_schema.user1]`), which allows generating multiple schema.rs files
25
27
* Add support for `COPY TO` and `COPY FROM` statements
28
+
* Add support for mapping `chrono::Duration` to postgresql's `INTERVAL` sql type
29
+
* Added `serialize_database_to_buffer` and `deserialize_readonly_database_from_buffer` methods in `SqliteConnection` to support serialization/deserialization of SQLite databases to and from byte buffers.
30
+
* Added `SerializedDatabase` wrapper type for a serialized database that is dynamically allocated by calling `serialize_database_to_buffer`. This RAII wrapper deallocates the memory when it goes out of scope with `sqlite3_free`.
26
31
27
32
### Changed
28
33
29
34
* The minimal officially supported rustc version is now 1.78.0
30
35
* Deprecated `sql_function!` in favour of `define_sql_function!` which provides compatibility with `#[dsl::auto_type]`
31
36
* Deserialization error messages now contain information about the field that failed to deserialize
32
37
38
+
## [2.1.6] 2024-04-19
39
+
40
+
* Fix using `BoxableExpression` with having clauses
41
+
* Fix using numeric expressions with aliased fields
* Allow `Queryable` to be used with multiple table names.
48
+
* Fix an inconsistent unit test
49
+
* Fix a clippy lint
50
+
* Fix ./bin/test feature flag calls.
51
+
* Update `libsqlite3-sys` to allow version 0.28 as well
52
+
53
+
## [2.1.4] 2023-11-14
54
+
55
+
* Update `libsqlite3-sys` to allow version 0.27 as well
56
+
57
+
## [2.1.3] 2023-10-05
58
+
59
+
* Increased accidently decreased limit around element count in `DISTINCT ON` and `ORDER BY` clauses again as that broke existing code
60
+
61
+
## [2.1.2] 2023-09-25
62
+
63
+
## Fixed
64
+
65
+
* Fixed another potential breaking chaneg around queries containing `DISTINCT ON` and `ORDER BY` clauses consisting of custom sql expressions (e.g. `.nullable()`)
66
+
* Fixed an issue where `#[derive(Selectable)]` and `#[diesel(check_for_backend)]` generates invalid rust code if the struct contains lifetimes/generic types
67
+
68
+
## [2.1.1] 2023-08-25
69
+
70
+
## Fixed
71
+
72
+
* Fixed an issue in diesel-cli that lead to using unquoted table names in one of the internal queries
73
+
* Fixed a bug in `diesel print-schema` that lead to generating invalid `table!` macros if both the `#[sql_name]` and the `#[max_length]` attribute are present
74
+
* Fixed an issue in diesel-cli that lead to ignoring certain foreign key constraints for postgresql
75
+
* Fixed an crash while using `diesel print-schema` with really old sqlite versions
76
+
* Fixed an issue where `#[diesel(check_for_backend)]` ignored `#[diesel(deserialize_as)]` attributes
77
+
* Fixed several issues with the new `#[derive(MultiConnection)]` feature
78
+
* Fixed some edge cases in our sqlite timestamp parsing behaviour
79
+
*`diesel migration generate --diff-schema` now respects table filters as setup for `print-schema` via `diesel.toml`
80
+
* Fixed a potential breaking change around queries containing `DISTINCT ON` and `ORDER BY` clauses consisting of custom sql expressions (e.g. `diesel::dsl::sql`)
81
+
82
+
## Added
83
+
84
+
* Support for bigdecimal 0.4
85
+
33
86
## [2.1.0] 2023-05-26
34
87
35
88
### Changed
@@ -38,8 +91,6 @@ Increasing the minimal supported Rust version will always be coupled at least wi
38
91
39
92
### Added
40
93
41
-
* Added `serialize_database_to_buffer` and `deserialize_readonly_database_from_buffer` methods in `SqliteConnection` to support serialization/deserialization of SQLite databases to and from byte buffers.
42
-
* Added `SerializedDatabase` wrapper type for a serialized database that is dynamically allocated by calling `serialize_database_to_buffer`. This RAII wrapper deallocates the memory when it goes out of scope with `sqlite3_free`.
43
94
* Added the `custom_type_derives` config option to customize the derives for SQL
44
95
type definitions automatically generated by Diesel CLI.
45
96
* Add a `#[derive(MultiConnection)]` proc-macro that lets you easily implement `diesel::Connection`
@@ -2047,3 +2098,10 @@ queries or set `PIPES_AS_CONCAT` manually.
0 commit comments