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
Chris Tsang
0c4b69e3b3
impl EntityTrait
2021-05-19 20:07:57 +08:00
Billy Chan
bdc403c55b
Cargo fmt
2021-05-18 18:47:40 +08:00
Billy Chan
8d92e09858
Derive macros traits with crate name
2021-05-18 18:43:14 +08:00
Chris Tsang
7bf8ab0202
Many to many prototype
2021-05-18 00:18:55 +08:00
Chris Tsang
682d2151fc
Entity attr as "table"
2021-05-17 19:55:46 +08:00
Chris Tsang
106bb20cb5
Derive FromQueryResult
2021-05-17 19:48:53 +08:00
Billy Chan
07b58551af
Add proc_macro
2021-05-17 16:59:34 +08:00
Chris Tsang
abc11753a8
Select Both
2021-05-15 15:02:54 +08:00
Chris Tsang
634b5aca7a
FromQueryResult with prefix
2021-05-12 12:48:54 +08:00
Chris Tsang
486a081509
Improve API
2021-05-09 21:11:32 +08:00
Chris Tsang
6203d967eb
Move code
2021-05-09 19:14:47 +08:00
Chris Tsang
00f2e125df
Redesign EntityName + entity::prelude
2021-05-09 19:03:54 +08:00
Chris Tsang
19b95eb64b
Resign Iden
2021-05-09 18:50:31 +08:00
Chris Tsang
8ab34882bd
Find models belongs to
2021-05-09 18:35:25 +08:00
Chris Tsang
58f4059c3e
Redesign primary key
2021-05-09 17:36:55 +08:00
Chris Tsang
3a59d896e4
Find one
2021-05-09 16:47:34 +08:00
Chris Tsang
6289b331a9
Model getter and setter
2021-05-09 15:28:03 +08:00
Chris Tsang
c72d7b0289
Rename
2021-05-09 02:43:40 +08:00
Chris Tsang
7bb521fad2
Comment
2021-05-09 02:25:19 +08:00
Chris Tsang
df03a78702
Find related
2021-05-09 02:14:40 +08:00
Chris Tsang
89af820f2c
Reverse join
2021-05-09 00:39:38 +08:00
Chris Tsang
add2e1ca0c
Relation with Fruit
2021-05-08 17:38:55 +08:00
Chris Tsang
8e4271da79
Select filters
2021-05-08 16:27:06 +08:00
Chris Tsang
3f5b0080da
Rename traits
2021-05-08 14:58:41 +08:00
Chris Tsang
69a52b6c7e
Use generic for try_get
2021-05-07 21:37:48 +08:00
Chris Tsang
59b747bf55
QueryResult to Model
2021-05-07 21:22:51 +08:00
Chris Tsang
98b0e9df95
Example
2021-05-07 18:03:30 +08:00
Chris Tsang
9080d16c24
First unit test
2021-05-07 16:50:04 +08:00