Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diesel 2.2.0 #173312

Closed
wants to merge 1 commit into from
Closed

diesel 2.2.0 #173312

wants to merge 1 commit into from

Conversation

BrewTestBot
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
This release wouldn't be possible without the support of our contributors and sponsors. If you want to support diesels development, consider [joining the reviewer team](https://github.com/diesel-rs/diesel/issues/1186), submitting [PR's](https://github.com/diesel-rs/diesel/issues?q=is%3Aissue+is%3Aopen++label%3A%22help+wanted%22+), help writing documentation or [sponsor the maintainers](https://github.com/sponsors/weiznich).

Added

  • Support [print_schema] exclude_custom_type_definitions = ["Vector"]. If a custom type matches one element on the list it's skipped.
  • Added automatic usage of all sqlite rowid aliases when no explicit primary key is defined for print-schema
  • Added a #[dsl::auto_type] attribute macro, allowing to infer type of query fragment functions
  • 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.
  • Added an optional #[diesel(skip_insertion)] field attribute to the Insertable derive macro, allowing fields which map to generated columns to be skipped during insertion.
  • Support for connection instrumentation. This allows to inspect any query run by your application
  • Logging in diesel-cli
  • Support for libsqlite3-sys 0.28
  • 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).
  • Support for multiple print_schema entry in diesel.toml (e.g. [print_schema.user1]), which allows generating multiple schema.rs files
  • Add support for COPY TO and COPY FROM statements
  • Add support for mapping chrono::Duration to postgresql's INTERVAL sql type
  • 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.
  • 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.

Changed

  • The minimal officially supported rustc version is now 1.78.0
  • Deprecated sql_function! in favour of define_sql_function! which provides compatibility with #[dsl::auto_type]
  • Deserialization error messages now contain information about the field that failed to deserialize

New Contributors

Full Changelog: diesel-rs/diesel@v2.1.0...v2.2.0

@github-actions github-actions bot added rust Rust use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels May 31, 2024
@chenrui333
Copy link
Member

    --- stderr
    thread 'main' panicked at /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/mysqlclient-sys-0.3.1/build.rs:160:9:
    mysqlclient-sys does not provide bundled bindings for libmysqlclient 23. Consider using the `buildtime_bindgen` feature or contribute bindings to the crate
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

@chenrui333 chenrui333 added the build failure CI fails while building the software label May 31, 2024
diesel: generate db bindings during build time

Signed-off-by: Rui Chen <[email protected]>

diesel: update build

Signed-off-by: Rui Chen <[email protected]>
Copy link
Contributor

github-actions bot commented Jun 5, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. To keep this pull request open, add a help wanted or in progress label.

@github-actions github-actions bot added the stale No recent activity label Jun 5, 2024
@github-actions github-actions bot closed this Jun 7, 2024
@miccal miccal deleted the bump-diesel-2.2.0 branch June 7, 2024 01:14
@chenrui333
Copy link
Member

#174458

@chenrui333 chenrui333 added the superseded PR was replaced by another PR label Jun 13, 2024
@github-actions github-actions bot added the outdated PR was locked due to age label Jul 13, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build failure CI fails while building the software bump-formula-pr PR was created using `brew bump-formula-pr` CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. outdated PR was locked due to age rust Rust use is a significant feature of the PR or issue stale No recent activity superseded PR was replaced by another PR upstream issue An upstream issue report is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants