151 Commits

Author SHA1 Message Date
Billy Chan
2e26fa3873
Fix clippy warnings 2021-12-07 22:41:27 +08:00
Emile Fugulin
f04ef378c6 Add feature to generate table Iden 2021-12-04 12:05:24 -05:00
Billy Chan
f809242c1f
Test [issues] 2021-11-16 18:40:37 +08:00
Billy Chan
f64f1e9216
DeriveActiveEnum generate code that depends on sea-query inside sea-orm 2021-11-04 11:01:29 +08:00
Billy Chan
bb78a1d709
More ergonomic DeriveActiveEnum derive macro 2021-11-03 15:38:42 +08:00
Billy Chan
6018d3f1b9
Merge remote-tracking branch 'origin/master' into active-enum 2021-11-02 12:18:37 +08:00
Billy Chan
6904b9f057
Try fixing sea-orm-macros doctest errors 2021-10-31 15:45:42 +08:00
Charles Chege
870ca3ffb0 Run fmt --all 2021-10-30 12:00:07 +03:00
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
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
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
Billy Chan
d6b53abd95
Handle crate, Self and self rust keywords 2021-10-06 22:24:52 +08:00
Billy Chan
19a572b721
Escape rust keywords with r# raw identifier 2021-10-04 23:30:20 +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
27807f3f6c Fix DeriveEntityModel Decimal mapping 2021-09-18 21:45:28 +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