Skip to content

Commit 00141af

Browse files
authored
Merge pull request #1 from Goodjooy/fix-conflex
update to newest code
2 parents 4d8f559 + af7b422 commit 00141af

File tree

170 files changed

+1498
-3326
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+1498
-3326
lines changed

Diff for: .github/workflows/rust.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ jobs:
234234
matrix:
235235
path: [
236236
examples/actix_example,
237-
examples/actix3_example,
238237
examples/axum_example,
239238
examples/basic,
240239
examples/graphql_example,
@@ -243,7 +242,7 @@ jobs:
243242
examples/poem_example,
244243
examples/proxy_gluesql_example,
245244
examples/rocket_example,
246-
# examples/rocket_okapi_example,
245+
examples/rocket_okapi_example,
247246
examples/salvo_example,
248247
examples/seaography_example,
249248
examples/tonic_example,

Diff for: CHANGELOG.md

+47-2
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,60 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8-
## 1.0.0-rc.2 - Pending
8+
## 1.0.0-rc.2 - 2024-03-15
99

1010
### Breaking Changes
1111

1212
* Updated Strum to version 0.26 https://github.com/SeaQL/sea-orm/pull/2088
13+
* Renamed `ConnectOptions::pool_options()` to `ConnectOptions::sqlx_pool_options()` https://github.com/SeaQL/sea-orm/pull/2145
14+
* Made `sqlx_common` private, hiding `sqlx_error_to_xxx_err` https://github.com/SeaQL/sea-orm/pull/2145
1315

1416
### Enhancements
1517

16-
* [sea-orm-cli] Fix `migrate generate` on empty `mod.rs` files
18+
* [sea-orm-cli] Fix `migrate generate` on empty `mod.rs` files https://github.com/SeaQL/sea-orm/pull/2064
19+
* `DerivePartialModel` macro attribute `entity` now supports `syn::Type` https://github.com/SeaQL/sea-orm/pull/2137
20+
```rust
21+
#[derive(DerivePartialModel)]
22+
#[sea_orm(entity = "<entity::Model as ModelTrait>::Entity")]
23+
struct EntityNameNotAIdent {
24+
#[sea_orm(from_col = "foo2")]
25+
_foo: i32,
26+
#[sea_orm(from_col = "bar2")]
27+
_bar: String,
28+
}
29+
```
30+
* Added `RelationDef::from_alias()` https://github.com/SeaQL/sea-orm/pull/2146
31+
```rust
32+
assert_eq!(
33+
cake::Entity::find()
34+
.join_as(
35+
JoinType::LeftJoin,
36+
cake_filling::Relation::Cake.def().rev(),
37+
cf.clone()
38+
)
39+
.join(
40+
JoinType::LeftJoin,
41+
cake_filling::Relation::Filling.def().from_alias(cf)
42+
)
43+
.build(DbBackend::MySql)
44+
.to_string(),
45+
[
46+
"SELECT `cake`.`id`, `cake`.`name` FROM `cake`",
47+
"LEFT JOIN `cake_filling` AS `cf` ON `cake`.`id` = `cf`.`cake_id`",
48+
"LEFT JOIN `filling` ON `cf`.`filling_id` = `filling`.`id`",
49+
]
50+
.join(" ")
51+
);
52+
```
53+
54+
### Upgrades
55+
56+
* Upgrade `sea-schema` to `0.15.0-rc.3`
57+
58+
### House keeping
59+
60+
* Improved Actix example to return 404 not found on unexpected inputs https://github.com/SeaQL/sea-orm/pull/2140
61+
* Re-enable `rocket_okapi` example https://github.com/SeaQL/sea-orm/pull/2136
1762

1863
## 1.0.0-rc.1 - 2024-02-06
1964

Diff for: Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = [".", "sea-orm-macros", "sea-orm-codegen"]
33

44
[package]
55
name = "sea-orm"
6-
version = "1.0.0-rc.1"
6+
version = "1.0.0-rc.2"
77
authors = ["Chris Tsang <[email protected]>"]
88
edition = "2021"
99
description = "🐚 An async & dynamic ORM for Rust"
@@ -33,7 +33,7 @@ log = { version = "0.4", default-features = false }
3333
tracing = { version = "0.1", default-features = false, features = ["attributes", "log"] }
3434
rust_decimal = { version = "1", default-features = false, optional = true }
3535
bigdecimal = { version = "0.3", default-features = false, optional = true }
36-
sea-orm-macros = { version = "1.0.0-rc.1", path = "sea-orm-macros", default-features = false, features = ["strum"] }
36+
sea-orm-macros = { version = "1.0.0-rc.2", path = "sea-orm-macros", default-features = false, features = ["strum"] }
3737
sea-query = { version = "0.31.0-rc.3", default-features = false, features = ["thread-safe", "hashable-value", "backend-mysql", "backend-postgres", "backend-sqlite"] }
3838
sea-query-binder = { version = "0.6.0-rc.1", default-features = false, optional = true }
3939
strum = { version = "0.26", default-features = false }

Diff for: README.md

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Please help us with maintaining SeaORM by completing the [SeaQL Community Survey
3030
Integration examples:
3131

3232
+ [Actix v4 Example](https://github.com/SeaQL/sea-orm/tree/master/examples/actix_example)
33-
+ [Actix v3 Example](https://github.com/SeaQL/sea-orm/tree/master/examples/actix3_example)
3433
+ [Axum Example](https://github.com/SeaQL/sea-orm/tree/master/examples/axum_example)
3534
+ [GraphQL Example](https://github.com/SeaQL/sea-orm/tree/master/examples/graphql_example)
3635
+ [jsonrpsee Example](https://github.com/SeaQL/sea-orm/tree/master/examples/jsonrpsee_example)

Diff for: examples/actix3_example/.env

-3
This file was deleted.

Diff for: examples/actix3_example/Cargo.toml

-12
This file was deleted.

Diff for: examples/actix3_example/README.md

-27
This file was deleted.

Diff for: examples/actix3_example/Screenshot.png

-604 KB
Binary file not shown.

Diff for: examples/actix3_example/api/Cargo.toml

-22
This file was deleted.

Diff for: examples/actix3_example/api/src/lib.rs

-219
This file was deleted.

0 commit comments

Comments
 (0)