Update Rust crate diesel to 2.1.1 #27

Merged
pierre merged 1 commits from renovate/diesel-2.x into master 2023-09-08 00:54:26 +00:00
Owner

This PR contains the following updates:

Package Type Update Change
diesel (source) dependencies minor 2.0.4 -> 2.1.1

Release Notes

diesel-rs/diesel (diesel)

v2.1.1: Diesel 2.1.1

Compare Source

Fixed

  • 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

You can support the development of diesel by sponsoring the project on github

v2.1.0

Compare Source

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

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [diesel](https://diesel.rs) ([source](https://github.com/diesel-rs/diesel)) | dependencies | minor | `2.0.4` -> `2.1.1` | --- ### Release Notes <details> <summary>diesel-rs/diesel (diesel)</summary> ### [`v2.1.1`](https://github.com/diesel-rs/diesel/releases/tag/v2.1.1): Diesel 2.1.1 [Compare Source](https://github.com/diesel-rs/diesel/compare/v2.1.0...v2.1.1) #### Fixed - 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 You can support the development of diesel by [sponsoring the project on github](https://github.com/diesel-rs/diesel) ### [`v2.1.0`](https://github.com/diesel-rs/diesel/blob/HEAD/CHANGELOG.md#210-2023-05-26) [Compare Source](https://github.com/diesel-rs/diesel/compare/v2.0.4...v2.1.0) ##### 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 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi44Ny43IiwidXBkYXRlZEluVmVyIjoiMzYuODcuNyIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
pierre added 1 commit 2023-09-08 00:31:42 +00:00
Update Rust crate diesel to 2.1.1
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
8ac79020d6
pierre scheduled this pull request to auto merge when all checks succeed 2023-09-08 00:31:43 +00:00
pierre merged commit 8ac79020d6 into master 2023-09-08 00:54:26 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pierre/GeneIT#27