78 Commits

Author SHA1 Message Date
Billy Chan
b65d441dea
Fix clippy warnings 2021-10-21 16:26:42 +08:00
Chris Tsang
8ce392ba8c #249 Build with mock + macros 2021-10-15 23:08:55 +08:00
Billy Chan
d6b53abd95
Handle crate, Self and self rust keywords 2021-10-06 22:24:52 +08:00
Billy Chan
7779ac886e
Escape rust keyword on codegen 2021-10-05 10:49:06 +08:00
Billy Chan
f3f24320e9
Add test cases 2021-10-05 10:23:45 +08:00
Billy Chan
19a572b721
Escape rust keywords with r# raw identifier 2021-10-04 23:30:20 +08:00
Billy Chan
54150382b9
Merge branch 'master' into rename-col-name-n-variant 2021-09-30 10:48:43 +08:00
Billy Chan
89806ef522
Add test cases 2021-09-28 14:27:30 +08:00
Billy Chan
e558dc8584
Move impl Linked to entity_linked module 2021-09-27 12:13:57 +08:00
Billy Chan
a4f2e3c2a8
Test cases with more level of joins 2021-09-27 11:45:19 +08:00
Chris Tsang
5509048550
Merge pull request #166 from SeaQL/model-ignore-attribute
Model ignore attributes
2021-09-17 17:20:42 +08:00
Billy Chan
a45c44cfc5 Add cake_expanded entity file for docs demo 2021-09-17 17:20:07 +08:00
Billy Chan
4e7bf8b836
Testing 2021-09-16 13:11:26 +08:00
Billy Chan
54bb358cca
DeriveEntityModel automatically derive DeriveModel and DeriveActiveModel 2021-09-08 22:02:24 +08:00
Chris Tsang
fa02a45fbf Try more DeriveEntityModel 2021-09-07 23:00:16 +08:00
Chris Tsang
a186338ff5 Try DeriveRelation 2021-09-07 22:54:39 +08:00
Chris Tsang
46d9fd30e6 Try DeriveEntity 2021-09-07 22:08:57 +08:00
Chris Tsang
d3132d339d Experiment on cake 2021-09-07 20:42:46 +08:00
Billy Chan
b5d85486dd
Fixup 2021-09-03 14:35:20 +08:00
Chris Tsang
76596da46a
Merge pull request #117 from SeaQL/primary-key-type
`InsertResult` to return the primary key's type
2021-09-03 14:15:11 +08:00
Billy Chan
d14322ad75
WIP (workflow will fail) 2021-09-01 19:05:59 +08:00
Billy Chan
9db0748c64
Non-static link 2021-08-28 20:20:34 +08:00
Billy Chan
484da8f6b6
WIP 2021-08-28 20:00:59 +08:00
Billy Chan
31941d3af6
WIP: Linked (#89) 2021-08-23 23:11:08 +08:00
Billy Chan
38ace07e83 Schema prefix in table join 2021-08-14 18:43:07 +08:00
Billy Chan
e76928f1cc Support join on multiple columns 2021-08-14 00:01:40 +08:00
Billy Chan
69b0ae1177 Custom column names with default 2021-08-13 21:39:50 +08:00
Billy Chan
8b30ef74a2 Customize column names 2021-08-12 22:53:22 +08:00
Chris Tsang
e228ada74a Restore example 2021-08-08 15:32:31 +08:00
Chris Tsang
fbb09e17a7 Remove files 2021-08-07 23:19:21 +08:00
Chris Tsang
e40455e771 Use SeaQL/strum 2021-07-01 21:07:23 +08:00
Billy Chan
7bf79ae5bf Re-export strum_macros 2021-07-01 19:12:52 +08:00
Chris Tsang
0a215f75ed Docs 2021-06-28 02:10:46 +08:00
Chris Tsang
9f93c7ed6f Use find_related in place of find_cake 2021-06-28 01:34:49 +08:00
Chris Tsang
cbf16102c0 has_one and belongs_to 2021-06-22 15:52:22 +08:00
Chris Tsang
d77a7c8ab4 Has many relation to be auto defined 2021-06-22 01:30:21 +08:00
Chris Tsang
91023d06c5 Codegen: update ColumnDef 2021-06-19 20:53:08 +08:00
Chris Tsang
0b3ea685d5 ColumnDef with builder API to replace sea_query::ColumnType in Entity def 2021-06-19 18:42:26 +08:00
Chris Tsang
820bbad9de impl IntoMockRow 2021-06-19 02:47:36 +08:00
Chris Tsang
f4611c4939 Refactor 2021-06-19 02:24:45 +08:00
Billy Chan
62fb43c605
Add unit test for pagination (#20)
* Add unit test for pagination

* End with empty page

* Add more test cases

* Assert transaction log

* Test utils

* Feature gated

* IntoMockRow, derive macro with into MockRow

* Revert derive macro

* WIP

* WIP

* assert_transaction_log
2021-06-18 23:43:07 +08:00
Chris Tsang
71d0cde771 PrimaryKey auto_increment 2021-06-12 19:18:14 +08:00
Chris Tsang
05ccb1b644 Tweak ActiveModelBehavior 2021-06-06 16:06:05 +08:00
Chris Tsang
93daf55cda Refactor EntityName 2021-06-04 00:37:39 +08:00
Chris Tsang
6a26b8cc17 ActiveModelBehavior 2021-06-03 18:57:26 +08:00
Billy Chan
7aaeef834c
Move to separate DeriveActiveModel, cargo fmt 2021-05-25 18:27:44 +08:00
Billy Chan
bbe80fa873
ActiveModel derive macro 2021-05-25 10:42:49 +08:00
Chris Tsang
9c42ab2552 ActiveModel 2021-05-25 01:16:48 +08:00
Chris Tsang
8c354c6c92 Model Default not needed 2021-05-24 23:27:30 +08:00
Chris Tsang
8886269616 Many to many by reverse relation 2021-05-19 21:48:51 +08:00