Update Rust crate diesel_migrations to v2.2.0
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
diesel_migrations (source) | dependencies | minor |
2.1.0 -> 2.2.0
|
Release Notes
diesel-rs/diesel (diesel_migrations)
v2.2.0
Added
- Support
[print_schema] except_custom_type_definitions = ["Vector"]
. If acustom 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 forprint-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 specifyingselect_expression_type
most of the time, in turn enabling most queries to be written using just aSelectable
derive. - Added an optional
#[diesel(skip_insertion)]
field attribute to theInsertable
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 useBigInt
forINTEGER PRIMARY KEY
columns in SQLite for tables without theWITHOUT ROWID
attribute (SQLite doc). - Support for multiple
print_schema
entry indiesel.toml
(e.g.[print_schema.user1]
), which allows generating multiple schema.rs files - Add support for
COPY TO
andCOPY FROM
statements - Add support for mapping
chrono::Duration
to postgresql'sINTERVAL
sql type - Added
serialize_database_to_buffer
anddeserialize_readonly_database_from_buffer
methods inSqliteConnection
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 callingserialize_database_to_buffer
. This RAII wrapper deallocates the memory when it goes out of scope withsqlite3_free
.
Changed
- The minimal officially supported rustc version is now 1.78.0
- Deprecated
sql_function!
in favour ofdefine_sql_function!
which provides compatibility with#[dsl::auto_type]
- Deserialization error messages now contain information about the field that failed to deserialize
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Óscar García Amor