Update sea-orm monorepo to ^0.12.0 #20
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^0.10.7
->^0.12.0
^0.10.7
->^0.12.0
Release Notes
SeaQL/sea-orm (sea-orm)
v0.12.15
Compare Source
Enhancements
DerivePartialModel
macro attributeentity
now supportssyn::Type
https://github.com/SeaQL/sea-orm/pull/2137RelationDef::from_alias()
https://github.com/SeaQL/sea-orm/pull/2146v0.12.14
Compare Source
sqlite-use-returning-for-3_35
to use SQLite's returning https://github.com/SeaQL/sea-orm/pull/2070v0.12.12
Compare Source
Bug Fixes
Enhancements
ConnectOptions::test_before_acquire
v0.12.11
Compare Source
New Features
desc
toCursor
paginator https://github.com/SeaQL/sea-orm/pull/2037Enhancements
Paginator
'sCOUNT
query https://github.com/SeaQL/sea-orm/pull/2030ConnectOptions
https://github.com/SeaQL/sea-orm/pull/2055QuerySelect::lock_with_behavior
https://github.com/SeaQL/sea-orm/pull/1867Bug Fixes
DeriveValueType
macro https://github.com/SeaQL/sea-orm/pull/2054House keeping
v0.12.10
Compare Source
New Features
#[sea_orm(comment = "action")]
);create_table_from_entity
supports comment https://github.com/SeaQL/sea-orm/pull/2009proxy
) to database backend https://github.com/SeaQL/sea-orm/pull/1881, https://github.com/SeaQL/sea-orm/pull/2000Enhancements
is_in
andis_not_in
https://github.com/SeaQL/sea-orm/pull/2002Upgrades
sea-query
to0.30.5
https://github.com/SeaQL/sea-query/releases/tag/0.30.5v0.12.9
Compare Source
Enhancements
Upgrades
sea-query
to0.30.4
https://github.com/SeaQL/sea-query/releases/tag/0.30.4v0.12.8
Compare Source
Enhancements
StatementBuilder
forsea_query::WithQuery
https://github.com/SeaQL/sea-orm/issues/1960Upgrades
axum
example to0.7
https://github.com/SeaQL/sea-orm/pull/1984v0.12.7
Compare Source
Enhancements
expr_as_
that acceptsself
https://github.com/SeaQL/sea-orm/pull/1979Upgrades
sea-query
to0.30.3
https://github.com/SeaQL/sea-query/releases/tag/0.30.3v0.12.6
Compare Source
New Features
#[sea_orm(skip)]
forFromQueryResult
derive macro https://github.com/SeaQL/sea-orm/pull/1954v0.12.5
Compare Source
Bug Fixes
--enum-extra-derives
https://github.com/SeaQL/sea-orm/pull/1934--enum-extra-attributes
https://github.com/SeaQL/sea-orm/pull/1952v0.12.4
Compare Source
New Features
Now the following works (requires the
json-array
/postgres-array
feature)!Enhancements
ValueTuple
as hash key https://github.com/SeaQL/sea-orm/pull/1868Upgrades
sea-query
to0.30.2
https://github.com/SeaQL/sea-query/releases/tag/0.30.2v0.12.3
Compare Source
New Features
cursor_by
toSelectTwo
https://github.com/SeaQL/sea-orm/pull/1826Enhancements
Bug Fixes
DeriveValueType
by qualifyingQueryResult
https://github.com/SeaQL/sea-orm/pull/1855Loader
panic on empty inputsUpgrades
salvo
to0.50
chrono
to0.4.30
https://github.com/SeaQL/sea-orm/pull/1858sea-query
to0.30.1
sea-schema
to0.14.1
House keeping
find_xxx_related/linked
https://github.com/SeaQL/sea-orm/pull/1811v0.12.2
Compare Source
Enhancements
FromQueryResult
impl ofJsonValue
https://github.com/SeaQL/sea-orm/pull/1598Bug fixes
find_with_related
consolidation logic https://github.com/SeaQL/sea-orm/issues/1800v0.12.1
sqlite-use-returning-for-3_35
to use SQLite's returning https://github.com/SeaQL/sea-orm/pull/2070v0.11.3
Compare Source
Enhancements
sea_orm::ConnectionTrait
insea_orm_migration::prelude
https://github.com/SeaQL/sea-orm/pull/1577FromQueryResult
derive macro https://github.com/SeaQL/sea-orm/pull/1464, https://github.com/SeaQL/sea-orm/pull/1603Bug Fixes
tracing-subscriber
dependency to 0.3.17 https://github.com/SeaQL/sea-orm/pull/1609v0.11.2
Compare Source
Enhancements
syn
features https://github.com/SeaQL/sea-orm/pull/1556sea_query::BlobSize
insea_orm::entity::prelude
https://github.com/SeaQL/sea-orm/pull/1548v0.11.1
Compare Source
Bug Fixes
DeriveActiveEnum
(by qualifyingColumnTypeTrait::def
) https://github.com/SeaQL/sea-orm/issues/1478sea-orm-cli generate entity -u '<DB-URL>'
will now generate the following code for eachBinary
orVarBinary
columns in compact format https://github.com/SeaQL/sea-orm/pull/1529sea-orm-cli generate entity -u '<DB-URL>' --expanded-format
will now generate the following code for eachBinary
orVarBinary
columns in expanded format https://github.com/SeaQL/sea-orm/pull/1529v0.11.0
Compare Source
0.11.0-rc.1
0.11.0-rc.2
New Features
SeaORM Core
uuid::fmt
module https://github.com/SeaQL/sea-orm/pull/1325ActiveEnum
field as primary key https://github.com/SeaQL/sea-orm/pull/1414ActiveModelBehavior
receive db connection as a parameter https://github.com/SeaQL/sea-orm/pull/1145, https://github.com/SeaQL/sea-orm/pull/1328execute_unprepared
method toDatabaseConnection
andDatabaseTransaction
https://github.com/SeaQL/sea-orm/pull/1327Select::into_tuple
to select rows as tuples (instead of defining a custom Model) https://github.com/SeaQL/sea-orm/pull/1311SeaORM CLI
#[serde(skip_deserializing)]
for primary key columns https://github.com/SeaQL/sea-orm/pull/846, https://github.com/SeaQL/sea-orm/pull/1186, https://github.com/SeaQL/sea-orm/pull/1318#[serde(skip)]
for hidden columns https://github.com/SeaQL/sea-orm/pull/1171, https://github.com/SeaQL/sea-orm/pull/1320SeaORM Migration
Enhancements
#[sea_orm(column_type = "JsonBinary")]
macro attribute https://github.com/SeaQL/sea-orm/pull/1346MockDatabase::append_exec_results()
,MockDatabase::append_query_results()
,MockDatabase::append_exec_errors()
andMockDatabase::append_query_errors()
take any types implementedIntoIterator
trait https://github.com/SeaQL/sea-orm/pull/1367find_by_id
anddelete_by_id
take anyInto
primary key value https://github.com/SeaQL/sea-orm/pull/1362QuerySelect::offset
andQuerySelect::limit
takes inInto<Option<u64>>
whereNone
would reset them https://github.com/SeaQL/sea-orm/pull/1410DatabaseConnection::close
https://github.com/SeaQL/sea-orm/pull/1236is_null
getter forColumnDef
https://github.com/SeaQL/sea-orm/pull/1381ActiveValue::reset
to convertUnchanged
intoSet
https://github.com/SeaQL/sea-orm/pull/1177QueryTrait::apply_if
to optionally apply a filter https://github.com/SeaQL/sea-orm/pull/1415sea-orm-internal
feature flag to expose some SQLx typesDatabaseConnection::get_*_connection_pool()
for accessing the inner SQLx connection pool https://github.com/SeaQL/sea-orm/pull/1297Upgrades
axum
to0.6.1
https://github.com/SeaQL/sea-orm/pull/1285sea-query
to0.28
https://github.com/SeaQL/sea-orm/pull/1366sea-query-binder
to0.3
https://github.com/SeaQL/sea-orm/pull/1366sea-schema
to0.11
https://github.com/SeaQL/sea-orm/pull/1366House Keeping
1.67.0
https://github.com/SeaQL/sea-orm/pull/1426vec!
macro https://github.com/SeaQL/sea-orm/pull/1367Bug Fixes
DeriveColumn
(by qualifyingIdenStatic::as_str
) https://github.com/SeaQL/sea-orm/pull/1280RecordNotInserted
error if non of them are being inserted https://github.com/SeaQL/sea-orm/pull/1021insert_many
withon_conflict
anddo_nothing
panics if no rows are inserted on Postgres https://github.com/SeaQL/sea-orm/issues/899last_insert_id
if not needed https://github.com/SeaQL/sea-orm/pull/1403Breaking Changes
RecordNotInserted
andRecordNotUpdated
toDbErr
ConnectionTrait::execute_unprepared
method https://github.com/SeaQL/sea-orm/pull/1327TryGetable
changed:So if you implemented it yourself:
ActiveModelBehavior
trait becomes async trait https://github.com/SeaQL/sea-orm/pull/1328.If you overridden the default
ActiveModelBehavior
implementation:DbErr::RecordNotFound("None of the database rows are affected")
is moved to a dedicated error variantDbErr::RecordNotUpdated
https://github.com/SeaQL/sea-orm/pull/1425sea_orm::ColumnType
was replaced bysea_query::ColumnType
https://github.com/SeaQL/sea-orm/pull/1395ColumnType::def
was moved toColumnTypeTrait
ColumnType::Binary
becomes a tuple variant which takes in additional optionsea_query::BlobSize
ColumnType::Custom
takes asea_query::DynIden
instead ofString
and thus a new methodcustom
is added (note the lowercase)Miscellaneous
axum
example should use tokio runtime https://github.com/SeaQL/sea-orm/pull/1428Full Changelog: SeaQL/sea-orm@0.10.0...0.11.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.