Fixed an issue with a possibly ambiguous trait resolution in #[derive(QueryableByName)]
[2.2.2] 2024-07-19
Fixed
Support for libsqlite3-sys 0.29.0
Fixed a potential panic in the sqlite cursor implementation
Fixed support for rust numeric operators with columns of the type Numeric
Removed the SerializedDatabase::new function due to unsoundness
[2.2.1] 2024-06-12
Fixed
Fixed using #[dsl::auto_type] with functions that accept reference arguments
Fixed using #[derive(Queryable)] with structs that use a type named Row as field type
Fixed a regression that prevented using mysqlclient-sys 0.2.x with diesel 2.2
Fixed connecting to postgres database using the scram-sha-256 authentication method on windows while using the bundled postgres builds
Improved the error messages in diesel-cli for cases where a file/folder was not found
Fixed several version detection bugs in mysqlclient-sys to use pre-generated bindings in more situations
[2.2.0] 2024-05-31
Added
Support [print_schema] except_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
... (truncated)
Commits
8fb5863 Also bump diesel-cli to 2.2.3 to fix the cargo dist build
4c0e1f7 Merge pull request #4195 from weiznich/prepare/2.2.3
fcd602f Merge pull request #4130 from Ten0/remove_unused_NoCombinationClause
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)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/habitat-sh/builder/network/alerts).
Bumps diesel from 1.4.8 to 2.2.3.
Release notes
Sourced from diesel's releases.
Changelog
Sourced from diesel's changelog.
... (truncated)
Commits
8fb5863
Also bump diesel-cli to 2.2.3 to fix the cargo dist build4c0e1f7
Merge pull request #4195 from weiznich/prepare/2.2.3fcd602f
Merge pull request #4130 from Ten0/remove_unused_NoCombinationClause5c52a82
Prepare a diesel 2.2.3 release3b624ed
Merge pull request #4170 from weiznich/prevent_protocol_level_size_overflows1a61cd3
Update cargo-dist to 0.21.148cc9e6
use try_from in range501e7e2
Merge pull request #4166 from guissalustiano/remove_cast_in_array7171ba1
Merge pull request #4156 from Aethelflaed/fix-cli-error-typeca2a484
Merge pull request #4154 from Tanguille/chore/allow-unused_qualifications-tableDependabot 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