205 Commits

Author SHA1 Message Date
Charles Chege
06aa9e3175 Document the macros.
Add code examples for the macros
2021-10-29 10:36:18 +03:00
Charles Chege
497bdbe3dd Document the macros.
Add code examples for the macros
2021-10-28 15:46:38 +03:00
Billy Chan
fe64d53b45
Merge remote-tracking branch 'origin/master' into active-enum 2021-10-27 13:24:35 +08:00
Carter Snook
058f6d5d2b
chore: update to Rust Edition 2021 (#273) 2021-10-26 17:27:53 +08:00
Chris Tsang
24df068cca sea-orm-macros 0.3.1 2021-10-23 16:04:59 +08:00
Billy Chan
e911d2f5f4
Unify case-transform using the same crate 2021-10-21 11:36:57 +08:00
Billy Chan
f1ef7d9c47
Add DbErr::Type 2021-10-20 16:41:01 +08:00
Billy Chan
eed8b7c51e
Add docs 2021-10-20 15:06:23 +08:00
Billy Chan
bf1663506a
Fix clippy warnings 2021-10-20 12:25:26 +08:00
Billy Chan
30e17a26d9
Better error messages 2021-10-20 12:17:10 +08:00
Billy Chan
8627c8d961
Draft ActiveEnum 2021-10-19 19:08:02 +08:00
Chris Tsang
9f395fefee sea-orm-macros 0.3.0 2021-10-16 01:45:32 +08:00
Billy Chan
864ec522b8 Add #[automatically_derived] to all derived implementations 2021-10-15 21:25:31 +08:00
Chris Tsang
760c439c83 Unit test DeriveIntoActiveModel 2021-10-13 18:58:00 +08:00
Ari Seyhun
4f64c66813 Add derive DeriveIntoActiveModel 2021-10-11 14:34:02 +07:00
Chris Tsang
f0aea3bf10 sea-orm-macros 0.2.6 2021-10-09 23:17:30 +08:00
Chris Tsang
cab0f6ba6e Merge pull request #224 from SeaQL/rust-keywords
Escape rust keywords with `r#` raw identifier
2021-10-07 16:36:56 +08:00
Chris Tsang
a1e6e002d1 sea-orm-macros 0.2.5 2021-10-06 18:48:12 +08:00
Chris Tsang
dc1bf2c066 sea-orm-macros 0.2.4 2021-10-01 12:37:48 +08:00
Chris Tsang
a6dfb417e2
Merge pull request #207 from SeaQL/naive-date
Support `chrono::NaiveDate` & `chrono::NaiveTime`
2021-09-30 22:52:31 +08:00
Billy Chan
02066cef6e
Support chrono::NaiveTime 2021-09-30 10:34:38 +08:00
Billy Chan
f7e96b3d72
Support chrono::NaiveDate 2021-09-30 10:34:38 +08:00
Billy Chan
88776a28ed
Rename column name & column enum variant 2021-09-28 14:27:19 +08:00
Chris Tsang
64204b53fe sea-orm-macros 0.2.3 2021-09-22 17:47:58 +08:00
Chris Tsang
27807f3f6c Fix DeriveEntityModel Decimal mapping 2021-09-18 21:45:28 +08:00
Chris Tsang
89c7359759 sea-orm-macros 0.2.2 2021-09-17 23:47:48 +08:00
Chris Tsang
89661ae3d0
Merge pull request #173 from SeaQL/pg-timestamp-tz
`TimestampWithTimeZone` Fixups
2021-09-17 23:38:47 +08:00
Chris Tsang
e7ec68f4c1 Correct Rust type to ColumnType mapping 2021-09-17 23:06:41 +08:00
Billy Chan
37d390e500
WIP 2021-09-17 19:04:18 +08:00
Billy Chan
beca48d48e
Refactor 2021-09-16 14:59:48 +08:00
Billy Chan
16e41be9df
Add & parse "ignore" macro attribute 2021-09-16 13:11:04 +08:00
Billy Chan
ca3dd2d2a1
cargo fmt 2021-09-15 10:45:09 +08:00
Ari Seyhun
1815e30405
Add DateTimeWithTimeZone support for DeriveEntityModel 2021-09-12 20:50:28 +09:30
Billy Chan
ba276cdde5
DeriveEntityModel supports attribute type of Vec<u8> 2021-09-10 17:11:19 +08:00
Billy Chan
11208d627b Move ActiveModel CRUD actions into ActiveModelTrait 2021-09-10 12:58:27 +08:00
Billy Chan
f4d1a52791 Change update behavior, add ActiveModel insert & update 2021-09-10 12:56:41 +08:00
Chris Tsang
9885029585 Use DeriveEntityModel in test suite 2021-09-09 17:22:54 +08:00
Chris Tsang
9b947901b9 Fix clippy warning 2021-09-09 15:20:17 +08:00
Billy Chan
54bb358cca
DeriveEntityModel automatically derive DeriveModel and DeriveActiveModel 2021-09-08 22:02:24 +08:00
Chris Tsang
c0a77c1298 Add type mapping 2021-09-08 00:12:47 +08:00
Marco Napetti
5567fbc289 Fix auto_increment as boolean 2021-09-07 23:06:19 +08:00
Chris Tsang
a186338ff5 Try DeriveRelation 2021-09-07 22:54:39 +08:00
Ari Seyhun
0f0d5b52b4 Add DeriveRelation 2021-09-07 22:12:23 +08:00
Ari Seyhun
290f78454b Rewrite DeriveModel 2021-09-07 22:08:57 +08:00
Chris Tsang
46d9fd30e6 Try DeriveEntity 2021-09-07 22:08:57 +08:00
Ari Seyhun
455fc4a934 Rewrite DeriveEntity 2021-09-07 22:08:57 +08:00
Chris Tsang
0fff7fd054 Rename to DeriveEntityModel 2021-09-07 20:37:51 +08:00
Chris Tsang
022bee0627 cargo fmt 2021-09-07 20:37:51 +08:00
Marco Napetti
d4a915616a Fix example 2021-09-07 10:38:42 +02:00
Marco Napetti
abcdbf2a48 Manage PrimaryKeyTrait::ValueType 2021-09-07 10:18:37 +02:00