Chris Tsang
6f909df000
Changelog
2022-10-23 23:18:38 +08:00
Billy Chan
a766500ebf
Cont. "Enable convert from ActiveModel to Model" ( #990 )
...
* Changelog
* Enable convert from ActiveModel to Model (#725 )
* feat: enable convert from ActiveModel to Model
* feat: add tests for converting from ActiveModel to Model
* cargo fmt
* Refactoring
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
* Fix clippy warnings
* Use error type
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
Co-authored-by: greenhandatsjtu <40566803+greenhandatsjtu@users.noreply.github.com>
2022-10-23 23:12:22 +08:00
Chris Tsang
3f07bd19b1
Changelog
2022-10-23 23:11:29 +08:00
Billy Chan
b91ca2b778
Implements fmt::Display
for ActiveEnum
( #986 )
...
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-10-23 22:29:31 +08:00
Chris Tsang
dd92a6860b
Community
2022-10-23 21:30:25 +08:00
Billy Chan
b5b9790252
Support array datatype in PostgreSQL ( #1132 )
...
* PostgreSQL array (draft)
* Fixup
* Fixup
* Fixup
* Fixup
* Fixup
* Refactoring
* generate entity for Postgres array fields
* Add tests
* Update Cargo.toml
Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-10-23 18:26:57 +08:00
XiaoZhang
2757190ba4
Community.md ( #1135 )
...
add crud-rs to Community.md
2022-10-20 15:44:34 +08:00
Esteban Borai
9b69c706d3
feat: add linx
to community open source projects ( #1136 )
...
Resolves: https://github.com/whizzes/linx/issues/11
2022-10-20 15:44:01 +08:00
Billy Chan
a6a1e184a4
[CI] upgrade actions/checkout to v3 ( #1131 )
2022-10-19 14:25:02 +08:00
Chris Tsang
46c7e8907f
Update binder
2022-10-19 01:08:53 +08:00
Billy Chan
24f4bc0d50
Rename cargo readme utility
2022-10-19 12:13:13 +08:00
Chris Tsang
10165ea181
Changelog
2022-10-19 00:43:38 +08:00
Chris Tsang
0437061287
Changelog
2022-10-19 00:43:10 +08:00
Chris Tsang
76a4ba4f0f
Changelog
2022-10-19 00:41:45 +08:00
Chris Tsang
2d3926294b
Changelog
2022-10-19 00:37:35 +08:00
Chris Tsang
8d7230d6ec
Dependency
2022-10-19 00:21:47 +08:00
Chris Tsang
ef14412348
Merge pull request #985 from SeaQL/sea-query-v0.27
...
Upgrade SeaQuery at SeaORM root to v0.27
2022-10-19 00:16:53 +08:00
Billy Chan
4df9a2672a
Fixup
2022-10-18 19:06:38 +08:00
Billy Chan
34ba0229cd
Refactoring
2022-10-18 18:48:17 +08:00
Ivan Krivosheev
44690994fe
Update Cargo.toml
2022-10-17 21:55:23 +03:00
Ivan Krivosheev
e5186cdb9e
Update Cargo.toml
2022-10-17 21:53:22 +03:00
Ivan Krivosheev
3219e6ff42
Merge branch 'master' into sea-query-v0.27
2022-10-17 21:50:48 +03:00
Chris Tsang
b255d7f114
Update CHANGELOG.md
2022-10-18 00:29:19 +08:00
Chris Tsang
a47fd91567
Update CHANGELOG.md
2022-10-18 00:27:46 +08:00
Chris Tsang
9bbab855d9
Update CHANGELOG.md
2022-10-18 00:06:04 +08:00
Billy Chan
a0fd72e635
Serialize time
types as serde_json::Value
( #1042 )
...
* Implement `IntoActiveValue` for `time` types.
I tried to implement a [custom active
model](https://www.sea-ql.org/SeaORM/docs/advanced-query/custom-active-model/ ),
and one of the columns was `Option<TimeDateTimeWithTimeZone>`. I got a
compiler error:
```
error[E0277]: the trait bound `std::option::Option<sea_orm::prelude::TimeDateTimeWithTimeZone>: IntoActiveValue<_>` is not satisfied
```
Looking into the source code, it seemed a simple oversight that this
trait was implemented for the `chrono` types but not the `time` types,
and it was easy enough to fix since there's already a macro to implement
it for new types.
I also noticed that the `time` types are not accounted for in
`src/query/json.rs` while the `chrono` types are, which I assume is also
an oversight. However, I don't have a need for that at this point and
the fix for that seemed less trivial, so I'm just bringing it to your
attention.
Thanks for SeaORM!
* Implement `IntoActiveValue` for `Vec<u8>` types
* Add tests to double check and prevent it from happening again
* Add docs
* Fixup
* Serialize `time` types as `serde_json::Value`
Co-authored-by: Jimmy Cuadra <jimmy@jimmycuadra.com>
2022-10-18 00:04:03 +08:00
Billy Chan
468cbb9baf
Fixup
2022-10-17 22:00:42 +08:00
Chris Tsang
bfab8720b4
Improve error messages #1125
2022-10-17 21:11:16 +08:00
Tsiry Sandratraina
e1883af5fc
Update COMMUNITY.md ( #1127 )
2022-10-17 20:59:23 +08:00
Billy Chan
29da37b4f2
Merge branch 'master' into sea-query-v0.27
2022-10-17 17:53:41 +08:00
Billy Chan
305dc00f96
Update CHANGELOG.md
2022-10-17 17:29:03 +08:00
Billy Chan
671d79469a
Fixup
2022-10-17 17:25:35 +08:00
Billy Chan
b22db842e4
Run migrations on PostgreSQL schema ( #1056 )
...
* Run migrations on PostgreSQL schema
* fmt
* fmt & clippy
* clippy
* [cli] update helper text
2022-10-17 17:16:00 +08:00
Chris Tsang
cb3e69d9f9
Update CHANGELOG.md
2022-10-16 19:05:22 +08:00
Billy Chan
e76cbb9fe1
Add into_model
& into_json
for Cursor
( #1112 )
2022-10-16 19:02:48 +08:00
Billy Chan
18215871ba
[cli] make dotenvy
and async-std
optional dependencies ( #1116 )
2022-10-16 18:10:52 +08:00
Chris Tsang
8d7aff12ba
sea-orm-rocket 0.5.1
2022-10-16 17:33:59 +08:00
Chris Tsang
5b1f796fa2
Changelog
2022-10-16 17:28:11 +08:00
Chris Tsang
ae0231d4a5
CI
2022-10-16 17:25:58 +08:00
Chris Tsang
1aa84589dc
Refactor
2022-10-16 17:18:58 +08:00
Erick Pacheco Pedraza
2cdc065b21
feat: support to Rocket-Okapi ( #1071 )
...
* feat: support to okapi
* fix: fmt checks
* chore: rocket-okapi-example: add required schemas
* chore: rocket-okapi-example: add dto
* chore: rocket-okapi-example: add custom error
* chore: rocket-okapi-example: add api controllers
* chore: rocket-okapi-example: add notes in Readme
* chore: make rocket_okapi optional
* refactor: delete rocket example from rocket_example
* chore: rocket-okapi-example: add base files for okapi example
* chore: rocket-okapi-example: add controllers and dto
* chore: rocket-okapi-example: add docs
2022-10-16 17:45:56 +08:00
Billy Chan
0ca62ba145
Links to cookbook
2022-10-13 21:24:17 +08:00
Chris Tsang
1c2d19a634
Update CHANGELOG.md
2022-10-12 00:06:33 +08:00
wdcocq
880147c596
Blanket IntoActiveValue implementations so custom db types are supported ( #833 )
...
* Add blanket implementations of IntoActiveValue for optional values
* Add a compile test for DeriveIntoActiveModel
2022-10-11 23:47:17 +08:00
Matthew Bauer
0f8b4bd1fa
Update README.md ( #1100 )
...
Verbiage change, seems less jank.
2022-10-09 17:55:30 +08:00
Chris Tsang
9b670f8ca5
Update CHANGELOG.md
2022-10-07 00:33:04 +08:00
Chris Tsang
5d752e60b9
Merge pull request #1002 from SeaQL/better-errors
...
Better error system
2022-10-07 00:24:41 +08:00
Chris Tsang
a44017f679
Reorder variants
2022-10-07 00:15:36 +08:00
Chris Tsang
ae198e6d7c
Update CHANGELOG.md
2022-10-06 23:51:33 +08:00
Billy Chan
29deb0dfd1
Better compile error for entity without primary key ( #1020 )
2022-10-06 23:50:39 +08:00