Update sea-orm monorepo to ^0.12.0#20
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
954f84f to
631be75
Compare
631be75 to
75e8888
Compare
75e8888 to
7df0046
Compare
7df0046 to
8ab7400
Compare
8ab7400 to
4efccd7
Compare
4efccd7 to
6d99cba
Compare
6d99cba to
fdd6aa2
Compare
fdd6aa2 to
053d7ec
Compare
053d7ec to
b953826
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.0Release Notes
SeaQL/sea-orm (sea-orm)
v0.12.15Compare Source
Enhancements
DerivePartialModelmacro attributeentitynow supportssyn::Type#2137RelationDef::from_alias()#2146v0.12.14Compare Source
sqlite-use-returning-for-3_35to use SQLite's returning #2070v0.12.12Compare Source
Bug Fixes
Enhancements
ConnectOptions::test_before_acquirev0.12.11Compare Source
New Features
desctoCursorpaginator #2037Enhancements
Paginator'sCOUNTquery #2030ConnectOptions#2055QuerySelect::lock_with_behavior#1867Bug Fixes
DeriveValueTypemacro #2054House keeping
v0.12.10Compare Source
New Features
#[sea_orm(comment = "action")]);create_table_from_entitysupports comment #2009proxy) to database backend #1881, #2000Enhancements
is_inandis_not_in#2002Upgrades
sea-queryto0.30.5https://github.com/SeaQL/sea-query/releases/tag/0.30.5v0.12.9Compare Source
Enhancements
Upgrades
sea-queryto0.30.4https://github.com/SeaQL/sea-query/releases/tag/0.30.4v0.12.8Compare Source
Enhancements
StatementBuilderforsea_query::WithQuery#1960Upgrades
axumexample to0.7#1984v0.12.7Compare Source
Enhancements
expr_as_that acceptsself#1979Upgrades
sea-queryto0.30.3https://github.com/SeaQL/sea-query/releases/tag/0.30.3v0.12.6Compare Source
New Features
#[sea_orm(skip)]forFromQueryResultderive macro #1954v0.12.5Compare Source
Bug Fixes
--enum-extra-derives#1934--enum-extra-attributes#1952v0.12.4Compare Source
New Features
Now the following works (requires the
json-array/postgres-arrayfeature)!Enhancements
ValueTupleas hash key #1868Upgrades
sea-queryto0.30.2https://github.com/SeaQL/sea-query/releases/tag/0.30.2v0.12.3Compare Source
New Features
cursor_bytoSelectTwo#1826Enhancements
Bug Fixes
DeriveValueTypeby qualifyingQueryResult#1855Loaderpanic on empty inputsUpgrades
salvoto0.50chronoto0.4.30#1858sea-queryto0.30.1sea-schemato0.14.1House keeping
find_xxx_related/linked#1811v0.12.2Compare Source
Enhancements
FromQueryResultimpl ofJsonValue#1598Bug fixes
find_with_relatedconsolidation logic #1800v0.12.1sqlite-use-returning-for-3_35to use SQLite's returning #2070v0.11.3Compare Source
Enhancements
sea_orm::ConnectionTraitinsea_orm_migration::prelude#1577FromQueryResultderive macro #1464, #1603Bug Fixes
tracing-subscriberdependency to 0.3.17 #1609v0.11.2Compare Source
Enhancements
synfeatures #1556sea_query::BlobSizeinsea_orm::entity::prelude#1548v0.11.1Compare Source
0.12.0-rc.1: Yanked0.12.0-rc.2: 2023-05-190.12.0-rc.3: 2023-06-220.12.0-rc.4: 2023-07-080.12.0-rc.5: 2023-07-22New Features
MigratorTrait::migration_table_name()method to configure the name of migration table #1511Identitysupports tuple ofDynIdenwith arity up to 12DerivePartialModel#1597DbErr::sql_err()method to convert error into common database errorsSqlErr, such as unique constraint or foreign key violation errors. #1707Select::find_with_linked, similar tofind_with_related: #1728, #1743DeriveValueTypederive macro for custom wrapper types, implementations of the required traits will be provided, you can customize thecolumn_typeandarray_typeif needed #1720DeriveDisplayderive macro to implementsstd::fmt::Displayfor enum #1726UpdateMany::exec_with_returning()#1677default_exprinDeriveEntityModel#1474ConnAcquireErr#1737Seaography
Added Seaography integration #1599
Added
DeriveEntityRelatedmacro which will implementseaography::RelationBuilderforRelatedEntityenumeration when theseaographyfeature is enabledAdded generation of
seaographyrelated information tosea-orm-codegen.The
RelatedEntityenum is added in entities files bysea-orm-cliwhen flagseaographyis set:seaography_exampleEnhancements
Option<T>model field. ANonevalue will be filled when the select result does not contain theOption<T>field without throwing an error. #1513migrate initcommand will create a.gitignorefile when the migration folder reside in a Git repository #1334sea-orm-cli migrate generate "create accounts table"command will createm20230503_000000_create_accounts_table.rsfor you #1570Migration::name()andMigration::status()getters for the name and status ofsea_orm_migration::Migration#1519postgres-arrayfeature will be enabled whensqlx-postgresbackend is selected #1565Stringparameters in API withInto<String>#1439IntoMockRowfor anyBTreeMapthat is indexed by stringimpl IntoMockRow for BTreeMap<T, Value> where T: Into<String>ConnectOptions-impl From<T> for ConnectOptions where T: Into<String>ConnectOptions::new(T) where T: Into<String>to takes any string SQLStatement::from_string(DbBackend, T) where T: Into<String>to takes any string SQLStatement::from_sql_and_values(DbBackend, T, I) where I: IntoIterator<Item = Value>, T: Into<String>to takes any string SQLTransaction::from_sql_and_values(DbBackend, T, I) where I: IntoIterator<Item = Value>, T: Into<String>to takes any string SQLConnectOptions::set_schema_search_path(T) where T: Into<String>to takes any stringColumnTrait::like(),ColumnTrait::not_like(),ColumnTrait::starts_with(),ColumnTrait::ends_with()andColumnTrait::contains()to takes any stringsea_query::{DynIden, RcOrArc, SeaRc}to entity prelude #1661expr,exprsandexpr_asmethods toQuerySelecttrait #1702DatabaseConnection::ping#1627TryInsertthat does not panic on empty inserts #1708Bug Fixes
DeriveActiveEnumthrowing errors becausestring_valueconsists non-UAX#31 compliant characters #1374Related<R>withviaandtomethods will not be generated if there exists multiple paths via an intermediate table #1435ActiveEnum::db_type()return type does not implementColumnTypeTrait#1576insert_manyfailing if the models iterator is empty #873Breaking changes
Option<T>model field. ANonevalue will be filled when the select result does not contain theOption<T>field instead of throwing an error. #1513sea-strumdependency with upstreamstruminsea-orm#1535deriveandstrumfeatures tosea-orm-macrosEnumIteris now shipped bysea-orm-macrosManytoIdentity#1508hashable-valuefeature in SeaQuery, thusValue::Float(NaN) == Value::Float(NaN)would be true #1728, #1743DeriveActiveEnumderive macro no longer implementstd::fmt::Display. You can use the newDeriveDisplaymacro #1726sea-query/deriveis no longer enabled bysea-orm, as such,Idenno longer works as a derive macro (it's still a trait). Instead, we are shipping a new macroDeriveIden#1740 #1755DbErr::ConnectionAcquirechanged toConnectionAcquire(ConnAcquireErr)#1737FromJsonQueryResultremoved from entity preludeUpgrades
sqlxto0.7#1742sea-queryto0.30#1742sea-schemato0.14#1742synto2#1713heckto0.4#1520, #1544strumto0.25#1752clapto4.3#1468ouroborosto0.17#1724House keeping
baewithsea-bae#1739Full Changelog: SeaQL/sea-orm@0.11.1...0.12.1
v0.11.0Compare Source
0.11.0-rc.10.11.0-rc.2New Features
SeaORM Core
uuid::fmtmodule #1325ActiveEnumfield as primary key #1414ActiveModelBehaviorreceive db connection as a parameter #1145, #1328execute_unpreparedmethod toDatabaseConnectionandDatabaseTransaction#1327Select::into_tupleto select rows as tuples (instead of defining a custom Model) #1311SeaORM CLI
#[serde(skip_deserializing)]for primary key columns #846, #1186, #1318#[serde(skip)]for hidden columns #1171, #1320SeaORM Migration
Enhancements
#[sea_orm(column_type = "JsonBinary")]macro attribute #1346MockDatabase::append_exec_results(),MockDatabase::append_query_results(),MockDatabase::append_exec_errors()andMockDatabase::append_query_errors()take any types implementedIntoIteratortrait #1367find_by_idanddelete_by_idtake anyIntoprimary key value #1362QuerySelect::offsetandQuerySelect::limittakes inInto<Option<u64>>whereNonewould reset them #1410DatabaseConnection::close#1236is_nullgetter forColumnDef#1381ActiveValue::resetto convertUnchangedintoSet#1177QueryTrait::apply_ifto optionally apply a filter #1415sea-orm-internalfeature flag to expose some SQLx typesDatabaseConnection::get_*_connection_pool()for accessing the inner SQLx connection pool #1297Upgrades
axumto0.6.1#1285sea-queryto0.28#1366sea-query-binderto0.3#1366sea-schemato0.11#1366House Keeping
1.67.0#1426vec!macro #1367Bug Fixes
DeriveColumn(by qualifyingIdenStatic::as_str) #1280RecordNotInsertederror if non of them are being inserted #1021insert_manywithon_conflictanddo_nothingpanics if no rows are inserted on Postgres #899last_insert_idif not needed #1403Breaking Changes
RecordNotInsertedandRecordNotUpdatedtoDbErrConnectionTrait::execute_unpreparedmethod #1327TryGetablechanged:So if you implemented it yourself:
impl TryGetable for XXX { - fn try_get(res: &QueryResult, pre: &str, col: &str) -> Result<Self, TryGetError> { + fn try_get_by<I: sea_orm::ColIdx>(res: &QueryResult, idx: I) -> Result<Self, TryGetError> { - let value: YYY = res.try_get(pre, col).map_err(TryGetError::DbErr)?; + let value: YYY = res.try_get_by(idx).map_err(TryGetError::DbErr)?; .. } }ActiveModelBehaviortrait becomes async trait #1328.If you overridden the default
ActiveModelBehaviorimplementation:DbErr::RecordNotFound("None of the database rows are affected")is moved to a dedicated error variantDbErr::RecordNotUpdated#1425sea_orm::ColumnTypewas replaced bysea_query::ColumnType#1395ColumnType::defwas moved toColumnTypeTraitColumnType::Binarybecomes a tuple variant which takes in additional optionsea_query::BlobSizeColumnType::Customtakes asea_query::DynIdeninstead ofStringand thus a new methodcustomis added (note the lowercase)// Expanded Entity impl ColumnTrait for Column { type EntityName = Entity; fn def(&self) -> ColumnDef { match self { - Self::Column => ColumnType::Custom("citext".to_owned()).def(), + Self::Column => ColumnType::custom("citext").def(), } } }Miscellaneous
axumexample should use tokio runtime #1428Full Changelog: SeaQL/sea-orm@0.10.0...0.11.0
Configuration
📅 Schedule: (UTC)
🚦 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.