1795 Commits

Author SHA1 Message Date
Michael Lohr
5d785ca908
Update COMMUNITY.md (#1014)
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-09-05 12:03:05 +08:00
Dionysus
967fd68649
Add MoonRamp under Built with SeaORM (#1013)
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-09-05 12:02:19 +08:00
Wyatt Herkamp
dd2dc5dd56
Add's Nitro_Repo (#1012)
Closes https://github.com/wyatt-herkamp/nitro_repo/issues/478

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-09-05 12:00:52 +08:00
Chris Tsang
e919831e72
Update CHANGELOG.md 2022-09-05 00:41:51 +08:00
Billy Chan
a80c33ef4c
Rewrite enum and text casting (#973)
* Rewrite enum and text casting

* Add doc tests

* Refactoring
2022-09-05 00:38:12 +08:00
Chris Tsang
a0bd359c65
Update COMMUNITY.md 2022-09-04 23:41:01 +08:00
Chris Tsang
9ea34984fb
Update COMMUNITY.md 2022-09-04 23:30:59 +08:00
Samuel Boyden
1ff53d81d8
Add CodeCTRL to COMMUNITY.md (#1015) 2022-09-04 23:15:16 +08:00
Chris Tsang
36f09c524e
Update src/error.rs
Co-authored-by: Sculas <contact@sculas.xyz>
2022-09-03 20:45:17 +08:00
Chris Tsang
4993c6ab2d
Update src/error.rs
Co-authored-by: Sculas <contact@sculas.xyz>
2022-09-03 20:45:09 +08:00
Chris Tsang
4d95218430
Update src/error.rs
Co-authored-by: Sculas <contact@sculas.xyz>
2022-09-03 20:44:59 +08:00
Chris Tsang
1c8ef33544
Update src/error.rs
Co-authored-by: Sculas <contact@sculas.xyz>
2022-09-03 20:44:45 +08:00
Billy Chan
d016f66a5f
Cargo.toml specify SeaORM homepage 2022-09-02 15:12:16 +08:00
Billy Chan
5f3210c62a
Fix [issues] 2022-09-01 16:52:03 +08:00
Billy Chan
6564ddac15
Testing [issues] [cli] 2022-09-01 16:39:18 +08:00
Billy Chan
4e835f2ee1
. 2022-09-01 16:38:47 +08:00
Billy Chan
0efdfc6742
Typo 2022-09-01 15:57:58 +08:00
Chris Tsang
85533a3bb3 Give up and fix tests 2022-08-28 14:54:26 +08:00
Chris Tsang
0ce0f49551 Refactor SqlxError; 2022-08-28 13:51:21 +08:00
Chris Tsang
348e841139 Refactor ColumnFromStrErr 2022-08-28 13:30:51 +08:00
Chris Tsang
0b754eab0b Refactor Type Errors 2022-08-28 12:59:33 +08:00
mohs8421
fe6c40dd75
Introducing sqlx-error feature (#750)
* feat: Introducing feature "sqlx-error"

Purpose of this feature is to not convert errors given from sqlx into strings to ease further analysis of the error and react to it accordingly. This implementation uses a feature switch and an additional error kind to avoid interfering with existing implementations without this feature enabled.
See discussion https://github.com/SeaQL/sea-orm/discussions/709

* fix: Align feature "sqlx-error" with merged Migration error kind

Due to the merge, an other error kind had been introduced and the DbErr became Eq and Clone, however Eq cannot easily be derived from, so I went back to PartialEq, and since the sqlx error does not implement clone, this was converted into an Arc, to allow cloning of the new kind too.

* fix: Repairing failing jobs

Several jobs had failed as I missed to correct the return values of a few methods in transaction.rs and had a wrong understanding of map_err at that point.

* feat: realigning with latest changes in sea-orm, different approach

Instead of the former approach to introduce a new error kind, now the existing error types get extended, for now only Exec and Query, because these are the most relevant for the requirement context.
Afterwards it might still be possible to add some further detail information.
See discussion https://github.com/SeaQL/sea-orm/discussions/709

* Update src/driver/sqlx_mysql.rs

Integrating fixes done by @Sculas

Co-authored-by: Sculas <contact@sculas.xyz>

* Update src/driver/sqlx_postgres.rs

Integrating fixes done by @Sculas

Co-authored-by: Sculas <contact@sculas.xyz>

* Update src/driver/sqlx_sqlite.rs

Integrating fixes done by @Sculas

Co-authored-by: Sculas <contact@sculas.xyz>

* feat: reworking feature with thiserror

Following the latest suggestions I changed the implementation to utilize `thiserror`.
Now there are more error kinds to be able to see the different kinds directly in src/error.rs
To ensure the behaviour is as expected, I also introduce a further test, which checks for a uniqueness failure.

Co-authored-by: Sculas <contact@sculas.xyz>
2022-08-28 11:13:51 +08:00
Billy Chan
9b6b879122
Migrator test cases with tracing_subscriber 2022-08-25 13:56:41 +08:00
Billy Chan
3727f7b8b5
[examples] create input model with DeriveIntoActiveModel (#975) 2022-08-25 12:51:22 +08:00
Billy Chan
af0bc7a0eb
Upgrade SeaORM root's SeaQuery to v0.27 2022-08-24 15:19:15 +08:00
Billy Chan
87f7891f17
Update Salvo examples 2022-08-22 14:42:05 +08:00
Chris Tsang
13b53369e2 Prepare for 0.10.0 2022-08-20 22:47:31 +08:00
Chris Tsang
f4634e55b3 Changelog 2022-08-20 22:46:08 +08:00
liberwang1013
fff0c87a6d
replaced usize with u64 in PaginatorTrait (#789)
undefined
2022-08-20 22:43:17 +08:00
Chris Tsang
e40c351676 Changelog 2022-08-20 22:31:45 +08:00
Chris Tsang
42c1c7377a Changelog 2022-08-20 22:24:29 +08:00
Chris Tsang
85a829924c update examples 2022-08-20 14:06:55 +08:00
Chris Tsang
e617599d92 sea-orm-migration 0.9.2 2022-08-20 14:06:55 +08:00
Chris Tsang
065ab80cd0 0.9.2 2022-08-20 14:06:55 +08:00
Chris Tsang
55e6b9d7d1 sea-orm-macros 0.9.2 2022-08-20 14:06:55 +08:00
Chris Tsang
8dd19831cc sea-orm-cli 0.9.2 2022-08-20 14:06:55 +08:00
Chris Tsang
25faf02abe sea-orm-codegen 0.9.2 2022-08-20 14:06:55 +08:00
Chris Tsang
fad54627cd Update sea-query to 0.26.3 2022-08-20 14:06:55 +08:00
Ryuma Taguchi
d262501a44
fix typo in SqlxPostgresConnector::connect() doc (#968) 2022-08-15 23:30:27 +08:00
Chris Tsang
10a215d28e Changelog 2022-08-14 01:01:12 +08:00
Chris Tsang
632471a526 Update chrono version 2022-08-14 00:46:38 +08:00
Chris Tsang
5dd28509af
Merge pull request #950 from robjtede/x-chrono-def
exclude chrono default features
2022-08-14 00:05:05 +08:00
Billy Chan
43495de0aa
Fix clippy warnings - 1 (#967)
* Fix clippy warnings

* cargo fmt

* Fix clippy warnings

* cargo fmt
2022-08-12 20:02:53 +08:00
Igor
0d94941c3b
Fix typos (#958) 2022-08-12 18:31:35 +08:00
Billy Chan
5e34bcecbe
Edit README 2022-08-11 15:39:50 +08:00
Billy Chan
1a2090fb5e
Give a shout-out to our contributors 2022-08-10 13:40:18 +08:00
Gabriel Paulucci
be0f7b4f13
Consider adding SophyCore to SeaORM showcase! (#952) 2022-08-09 14:28:56 +08:00
Rob Ede
5735c25e69
exclude chrono default features 2022-08-08 15:15:54 +02:00
kyoto7250
9f3039407a
update async-graphql-axum (#939) 2022-08-08 16:06:06 +08:00
Chris Tsang
eeebe2d35c Changelog 2022-08-07 18:50:14 +08:00