You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a unified `DatabaseExecutor` type that wraps either a `&DatabaseConnection` or `&DatabaseTransaction`. This moves the `SchemaManagerConnection` pattern from `sea-orm-migration` into sea-orm core, providing:
10
+
11
+
-`DatabaseExecutor` enum for unified handling of connections and transactions
12
+
-`IntoDatabaseExecutor` trait for ergonomic conversions
13
+
-`SchemaManagerConnection` type alias for backward compatibility
14
+
-`SchemaManagerConnectionExt` trait for migration-specific methods
15
+
16
+
### Bug Fixes
17
+
18
+
*None in this release.*
19
+
20
+
### Improvements
21
+
22
+
**Refactor Value array** (#2849)
23
+
24
+
Refactored the internal `Value` array handling for improved consistency and maintainability.
25
+
26
+
**Refactor CI** (#2859)
27
+
28
+
- Parallelized test compilation for faster CI runs
`DeriveValueType` now automatically implements `IntoActiveValue`, so custom value types can be used directly when building ActiveModels without additional boilerplate.
10
+
11
+
**`IntoActiveValue` for more types**
12
+
13
+
`IntoActiveValue` is now implemented for additional standard types, improving ergonomics when setting ActiveModel fields.
14
+
15
+
### Bug Fixes
16
+
17
+
**Fix sea-orm-sync**
18
+
19
+
Fixed issues in the `sea-orm-sync` crate.
20
+
21
+
**Fix sync**
22
+
23
+
Fixed sync-related bugs.
24
+
25
+
**Fix tests**
26
+
27
+
Resolved failing tests.
28
+
29
+
**Insert many on conflict do nothing returning** (#2389)
30
+
31
+
Added test coverage and fixes for `insert_many` with `on_conflict_do_nothing` and `returning` clauses.
32
+
33
+
### Improvements
34
+
35
+
**Remove `NotU8` trait** (#2868)
36
+
37
+
The `NotU8` trait has been removed. `DeriveValueType` now handles type constraints internally, simplifying the derive macro.
38
+
39
+
**Remove `bigdecimal` from default features**
40
+
41
+
The `bigdecimal` dependency is no longer included in default features, reducing the default dependency footprint. Enable it explicitly if needed.
Restored the value system across the core crate, drivers (MySQL, PostgreSQL, SQLite), and entity/column types. Refactored executor and query handling for consistency.
10
+
11
+
**Fix sea-orm-sync**
12
+
13
+
Aligned `sea-orm-sync` with the restored value system changes in the main crate. Updated drivers, entity types, and executor/query logic to match.
Added the `postgres-use-serial-pk` feature flag to use legacy `serial` / `bigserial` types for auto-increment primary keys instead of `GENERATED BY DEFAULT AS IDENTITY`. Enable with `postgres-use-serial-pk` in your `Cargo.toml` if you need compatibility with older PostgreSQL setups or tooling.
`DeriveValueType` now also implements `sea_query::postgres_array::NotU8`, enabling custom value types to work with PostgreSQL array columns. This is auto-generated when the `postgres-array` feature is enabled. Remove any manual `NotU8` implementations on your custom types to avoid conflicts.
0 commit comments