fix(deps): update rust crate sea-orm to 0.12 - autoclosed #3
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.2
->0.12
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
v0.10.7
Compare Source
Bug Fixes
insert_many
withon_conflict
anddo_nothing
panics if no rows are inserted on Postgres https://github.com/SeaQL/sea-orm/issues/899v0.10.6
Compare Source
Enhancements
Bug Fixes
DeriveColumn
(by qualifyingIdenStatic::as_str
) https://github.com/SeaQL/sea-orm/pull/1280v0.10.5
Compare Source
New Features
QuerySelect::columns
method - select multiple columns https://github.com/SeaQL/sea-orm/pull/1264Bug Fixes
DeriveEntityModel
derive macro: when parsing field type, always treat field withOption<T>
as nullable column https://github.com/SeaQL/sea-orm/pull/1257Enhancements
Related
implementation for many-to-many relation with extra columns https://github.com/SeaQL/sea-orm/pull/1260TryGetableFromJson::try_get_from_json()
- deserializing intoSelf
directly without the need of a intermediateserde_json::Value
https://github.com/SeaQL/sea-orm/pull/1249v0.10.4
Compare Source
Bug Fixes
DbErr
toMockDatabase
https://github.com/SeaQL/sea-orm/pull/1241Enhancements
IS IN
enum values expression https://github.com/SeaQL/sea-orm/pull/1183v0.10.3
Compare Source
Bug Fixes
_
prefix to enum variant starts with number https://github.com/SeaQL/sea-orm/pull/1211Enhancements
Insert::exec_without_returning
https://github.com/SeaQL/sea-orm/pull/1208House Keeping
v0.10.2
Compare Source
Enhancements
sqlx_logging
toConfig
https://github.com/SeaQL/sea-orm/pull/1192query_one/all
https://github.com/SeaQL/sea-orm/pull/1165StreamTrait
lifetime https://github.com/SeaQL/sea-orm/pull/1161Bug Fixes
UpdateGetPrimaryKey
https://github.com/SeaQL/sea-orm/pull/1180Upgrades
v0.10.1
Compare Source
Enhancements
-
in it https://github.com/SeaQL/sea-orm/pull/879, https://github.com/SeaQL/sea-orm/pull/1155time
crate for SQLite https://github.com/SeaQL/sea-orm/pull/995Bug Fixes
Related
for m-to-n relation https://github.com/SeaQL/sea-orm/pull/1075-u
when executingmigrate generate
command https://github.com/SeaQL/sea-orm/pull/1157sea_orm::
insideDeriveActiveEnum
derive macros https://github.com/SeaQL/sea-orm/pull/1146, https://github.com/SeaQL/sea-orm/pull/1154Vec<f32>
orVec<f64>
should not deriveEq
on the model struct https://github.com/SeaQL/sea-orm/pull/1158House Keeping
cli
feature to optionally include dependencies that are required by the CLI https://github.com/SeaQL/sea-orm/pull/978Upgrades
sea-schema
to 0.10.2 https://github.com/SeaQL/sea-orm/pull/1153v0.10.0
Compare Source
New Features
DeriveRelation
on emptyRelation
enum https://github.com/SeaQL/sea-orm/pull/1019Eq
if possible https://github.com/SeaQL/sea-orm/pull/988Enhancements
distinct
&distinct_on
expression https://github.com/SeaQL/sea-orm/pull/902fn column()
also handle enum type https://github.com/SeaQL/sea-orm/pull/973acquire_timeout
onConnectOptions
https://github.com/SeaQL/sea-orm/pull/897migrate fresh
command will drop all PostgreSQL types https://github.com/SeaQL/sea-orm/pull/864, https://github.com/SeaQL/sea-orm/pull/991IntoActiveValue
forOption
values https://github.com/SeaQL/sea-orm/pull/833into_model
&into_json
toCursor
https://github.com/SeaQL/sea-orm/pull/1112set_schema_search_path
method toConnectOptions
for setting schema search path of PostgreSQL connection https://github.com/SeaQL/sea-orm/pull/1056time
types asserde_json::Value
https://github.com/SeaQL/sea-orm/pull/1042fmt::Display
forActiveEnum
https://github.com/SeaQL/sea-orm/pull/986TryFrom<ActiveModel>
forModel
https://github.com/SeaQL/sea-orm/pull/990Bug Fixes
Breaking Changes
usize
withu64
inPaginatorTrait
https://github.com/SeaQL/sea-orm/pull/789DbErr
changed as a result of https://github.com/SeaQL/sea-orm/pull/1002ColumnType::Enum
structure changed:array_type
was added toValueType
:ActiveEnum::name()
changed return type toDynIden
:House Keeping
dotenv
withdotenvy
in examples https://github.com/SeaQL/sea-orm/pull/1085Integration
rocket_okapi
https://github.com/SeaQL/sea-orm/pull/1071Upgrades
sea-query
to 0.26 https://github.com/SeaQL/sea-orm/pull/985Full Changelog: SeaQL/sea-orm@0.9.0...0.10.0
v0.9.3
Compare Source
Enhancements
fn column()
also handle enum type https://github.com/SeaQL/sea-orm/pull/973DeriveRelation
on emptyRelation
enum https://github.com/SeaQL/sea-orm/pull/1019Bug Fixes
IntoActiveValue
fortime
types https://github.com/SeaQL/sea-orm/pull/1041FromJsonQueryResult
derive macro https://github.com/SeaQL/sea-orm/pull/1081v0.9.2
Compare Source
Enhancements
with-copy-enums
flag to conditional deriveCopy
onActiveEnum
https://github.com/SeaQL/sea-orm/pull/936House Keeping
chrono
default features https://github.com/SeaQL/sea-orm/pull/9501.60
https://github.com/SeaQL/sea-orm/pull/938sea-query
to0.26.3
Notes
In this minor release, we removed
time
v0.1 from the dependency graphv0.9.1
Compare Source
Enhancements
VarBinary
column type https://github.com/SeaQL/sea-orm/pull/746Bug Fixes
RelationDef
&RelationBuilder
should beSend
&Sync
https://github.com/SeaQL/sea-orm/pull/898House Keeping
async_trait
https://github.com/SeaQL/sea-orm/pull/737v0.9.0
Compare Source
New Features
DeriveMigrationName
andsea_orm_migration::util::get_file_stem
https://github.com/SeaQL/sea-orm/pull/736FromJsonQueryResult
for deserializingJson
from query result https://github.com/SeaQL/sea-orm/pull/794Enhancements
sqlx_logging_level
toConnectOptions
https://github.com/SeaQL/sea-orm/pull/800num_items_and_pages
toPaginator
https://github.com/SeaQL/sea-orm/pull/768TryFromU64
fortime
https://github.com/SeaQL/sea-orm/pull/849Insert::on_conflict
https://github.com/SeaQL/sea-orm/pull/791QuerySelect::join_as
andQuerySelect::join_as_rev
https://github.com/SeaQL/sea-orm/pull/852TryGetError::Null
https://github.com/SeaQL/sea-orm/pull/853time
crate https://github.com/SeaQL/sea-orm/pull/724Upgrades
clap
to 3.2 https://github.com/SeaQL/sea-orm/pull/706time
to 0.3 https://github.com/SeaQL/sea-orm/pull/834sqlx
to 0.6 https://github.com/SeaQL/sea-orm/pull/834uuid
to 1.0 https://github.com/SeaQL/sea-orm/pull/834sea-query
to 0.26 https://github.com/SeaQL/sea-orm/pull/834sea-schema
to 0.9 https://github.com/SeaQL/sea-orm/pull/834House Keeping
Bug Fixes
Breaking Changes
SelectTwoMany::one()
has been dropped https://github.com/SeaQL/sea-orm/pull/813, you can get(Entity, Vec<RelatedEntity>)
by first querying a single model from Entity, then use [ModelTrait::find_related
] on the model.Feature flag revamp
We now adopt the weak dependency syntax in Cargo. That means the flags["sqlx-json", "sqlx-chrono", "sqlx-decimal", "sqlx-uuid", "sqlx-time"]
are not needed and now removed. Instead,with-time
will enablesqlx?/time
only ifsqlx
is already enabled. As a consequence, now the featureswith-json
,with-chrono
,with-rust_decimal
,with-uuid
,with-time
will not be enabled as a side-effect of enablingsqlx
.Full Changelog: SeaQL/sea-orm@0.8.0...0.9.0
v0.8.0
Compare Source
New Features
sea migrate generate
to generate a new, empty migration file https://github.com/SeaQL/sea-orm/pull/656Enhancements
max_connections
option to CLI https://github.com/SeaQL/sea-orm/pull/670Eq
,Clone
forDbErr
https://github.com/SeaQL/sea-orm/pull/677is_changed
toActiveModelTrait
https://github.com/SeaQL/sea-orm/pull/683Bug Fixes
DerivePrimaryKey
with custom primary key column name https://github.com/SeaQL/sea-orm/pull/694DeriveEntityModel
macros override column name https://github.com/SeaQL/sea-orm/pull/695DEFAULT
https://github.com/SeaQL/sea-orm/pull/589Breaking Changes
sea-orm-migration
.sea_schema::migration::prelude
should be replaced bysea_orm_migration::prelude
in all migration filesUpgrades
sea-query
to 0.24.x,sea-schema
to 0.8.xFixed Issues
Full Changelog: SeaQL/sea-orm@0.7.1...0.8.0
v0.7.1
Compare Source
with-json
v0.7.0
Compare Source
New Features
time
crate by @billy1624 https://github.com/SeaQL/sea-orm/pull/602delete_by_id
@ShouvikGhosh2048 https://github.com/SeaQL/sea-orm/pull/590PaginatorTrait
forSelectorRaw
@shinbunbun https://github.com/SeaQL/sea-orm/pull/617Enhancements
Send
bound toQueryStream
andTransactionStream
by @sebpuetz https://github.com/SeaQL/sea-orm/pull/471Send
toStreamTrait
by @nappa85 https://github.com/SeaQL/sea-orm/pull/622sea
as an alternative bin name tosea-orm-cli
by @ZhangHanDong https://github.com/SeaQL/sea-orm/pull/558Bug Fixes
Breaking Changes
mock
from default features by @billy1624 https://github.com/SeaQL/sea-orm/pull/562create_table_from_entity
will no longer create index for MySQL, please use the new methodcreate_index_from_entity
Documentations
Fixed Issues
DatabaseConnection
Clone
with the default features enabled https://github.com/SeaQL/sea-orm/issues/438Configuration
📅 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.