Diesel 2.2.0 #4053
weiznich
started this conversation in
Show and tell
Diesel 2.2.0
#4053
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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, submitting PR's, help writing documentation or sponsor the maintainers.
Added
[print_schema] exclude_custom_type_definitions = ["Vector"]
. If acustom type
matches one element on the list it's skipped.rowid
aliases when no explicit primary key is defined forprint-schema
#[dsl::auto_type]
attribute macro, allowing to infer type of query fragment functionsSelectable
derives, which allows skipping specifyingselect_expression_type
most of the time, in turn enabling most queries to be written using just aSelectable
derive.#[diesel(skip_insertion)]
field attribute to theInsertable
derive macro, allowing fields which map to generated columns to be skipped during insertion.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).print_schema
entry indiesel.toml
(e.g.[print_schema.user1]
), which allows generating multiple schema.rs filesCOPY TO
andCOPY FROM
statementschrono::Duration
to postgresql'sINTERVAL
sql typeserialize_database_to_buffer
anddeserialize_readonly_database_from_buffer
methods inSqliteConnection
to support serialization/deserialization of SQLite databases to and from byte buffers.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
sql_function!
in favour ofdefine_sql_function!
which provides compatibility with#[dsl::auto_type]
New Contributors
distinct_on
withpostgres_backend
instead ofpostgres
#3657#[diesel(treat_none_as_{null, default_value} = …]
on fields #3724diesel migration --diff-schema
#3725Bool
type to MultiConnection #3747Clone
to the default value of custom_type_derives in diesel.toml #3888ToSql
#3956Selectable
docs #3751bin/test
script #3982.optional()
, convert aQueryBuilderError
intoNone
#4019derive_from_sql_row()
docs #4015chrono::Duration
#4037Full Changelog: v2.1.0...v2.2.0
This discussion was created from the release Diesel 2.2.0.
Beta Was this translation helpful? Give feedback.
All reactions