Fixed an issue in diesel-cli that lead to using unquoted table names in one of the internal queries
Fixed a bug in diesel print-schema that lead to generating invalid table! macros if both the #[sql_name] and the #[max_lenght] attribute are present
Fixed an issue in diesel-cli that lead to ignoring certain foreign key constraints for postgresql
Fixed an crash while using diesel print-schema with really old sqlite versions
Fixed an issue where #[diesel(check_for_backend)] ignored #[diesel(deserialize_as)] attributes
Fixed several issues with the new #[derive(MultiConnection)] feature
Fixed some edge cases in our sqlite timestamp parsing behaviour
diesel migration generate --diff-schema now respects table filters as setup for print-schema via diesel.toml
Fixed a potential breaking change around queries containing DISTINCT ON and ORDER BY clauses consisting of custom sql expressions (e.g. diesel::dsl::sql)
Added
Support for bigdecimal 0.4
[2.1.0] 2023-05-26
Changed
The minimal officially supported rustc version is now 1.65.0
Added
Added the custom_type_derives config option to customize the derives for SQL
type definitions automatically generated by Diesel CLI.
Add a #[derive(MultiConnection)] proc-macro that lets you easily implement diesel::Connection
for an enum of connections to different database backends.
Added a --diff-schema flag to the diesel migration generate command that generates a migration based
on the difference between your database and the provided schema.rs file
Add a ON CONFLICT (...) DO UPDATE ... [WHERE ...] conditional clause support for PostgreSQL.
Add support for MySQL's ON DUPLICATE KEY DO UPDATE syntax through the existing upsert functions.
Add ability to define multiple columns in a single distinct_on for PostgreSQL,
like: .distinct_on((column_a, column_b)).
Added column size restrictions to the generated schema.rs file
[2.0.4] 2023-04-18
Fixed
Workaround the missing name resolution in rust-analyzer. This should fix type inference for some diesel queries. (It remains broken for queries containing .filter()/.inner_join()/.left_join(). These require fixes in rust-analyzer itself)
Fixed a bug that could lead to inserting null values instead of empty values for custom sqlite types
Fixed a bug that could lead to an unexpected panic while providing an out of bounds bind for sql_query in the sqlite backend
Fixed some mysql backend specific impl being behind the mysql instead of the mysql_backend feature flag
Added
... (truncated)
Commits
45c0102 Prepare a diesel 2.1.1 release to fix various bugs
181a62a Merge pull request #3643 from weiznich/fix/broken_distinct_on_with_custom_exp...
3281c86 Merge pull request #3752 from weiznich/fix/3748
9056ab3 Merge pull request #3747 from BlackDex/add-bool-type-to-multiconnection
4e72855 Merge pull request #3725 from gmanninglive/fix/3717
87c928d Merge pull request #3737 from weiznich/fix/cli_error_invalid
bd6584c Merge pull request #3694 from caido/fix/sqlite-timestamp-parsing
fd12318 Merge pull request #3716 from weiznich/fix/nullable_binds_with_multiconnection
a41f979 Merge pull request #3734 from surban/fix-datetimeproxy
0a7babd Merge pull request #3729 from weiznich/fix/nightly_breaking_tests
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps diesel from 1.4.8 to 2.1.1.
Release notes
Sourced from diesel's releases.
Changelog
Sourced from diesel's changelog.
... (truncated)
Commits
45c0102
Prepare a diesel 2.1.1 release to fix various bugs181a62a
Merge pull request #3643 from weiznich/fix/broken_distinct_on_with_custom_exp...3281c86
Merge pull request #3752 from weiznich/fix/37489056ab3
Merge pull request #3747 from BlackDex/add-bool-type-to-multiconnection4e72855
Merge pull request #3725 from gmanninglive/fix/371787c928d
Merge pull request #3737 from weiznich/fix/cli_error_invalidbd6584c
Merge pull request #3694 from caido/fix/sqlite-timestamp-parsingfd12318
Merge pull request #3716 from weiznich/fix/nullable_binds_with_multiconnectiona41f979
Merge pull request #3734 from surban/fix-datetimeproxy0a7babd
Merge pull request #3729 from weiznich/fix/nightly_breaking_testsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show