212 Commits

Author SHA1 Message Date
Chris Tsang
aff988bd94
Merge pull request #324 from SeaQL/hotfix-custom-types
Unknown types could be a newtypes instead of `ActiveEnum`
2021-11-17 16:47:28 +08:00
Billy Chan
0f904e02f0
Refactoring 2021-11-17 10:38:02 +08:00
Billy Chan
3d5f4424a8
Fixup 2021-11-16 13:09:07 +08:00
Billy Chan
36886e74cd
Testing & fixup 2021-11-16 12:04:21 +08:00
Billy Chan
f504ad1eef
Refactor Schema 2021-11-11 15:11:52 +08:00
Billy Chan
f975223d9e
Fixup 2021-11-10 16:08:06 +08:00
Billy Chan
ac804a1642
Imports PaginatorTrait by default making it backward compatible 2021-11-10 15:26:29 +08:00
Billy Chan
1905f62430
cargo fmt 2021-11-10 14:58:06 +08:00
jasper
05181994d3 Move count to PaginatorTrait 2021-11-10 08:57:05 +08:00
jasper
4b11a10680 Update examples and test 2021-11-09 22:29:48 +08:00
jasper
23498892b0 Add PaginatorTrait and CountTrait 2021-11-09 21:33:55 +08:00
Billy Chan
67bb168e49
Correctly apply filters on enum columns 2021-11-04 11:40:05 +08:00
Billy Chan
bb78a1d709
More ergonomic DeriveActiveEnum derive macro 2021-11-03 15:38:42 +08:00
Billy Chan
2f7c9ccda7
Refactoring 2021-11-03 10:56:06 +08:00
Billy Chan
0bbb50b7f6
Merge remote-tracking branch 'origin/master' into active-enum 2021-11-03 10:52:29 +08:00
Billy Chan
d22ff0db5e
Fixup 2021-11-02 18:35:36 +08:00
Billy Chan
892c0fe57d
Support Vec<u8> primary key 2021-11-02 15:20:27 +08:00
Billy Chan
f88c7259fe
Fixup 2021-10-27 12:50:02 +08:00
Billy Chan
55de1968bb
Add create_enum_from_entity 2021-10-27 12:37:35 +08:00
Billy Chan
cf52839c3a
Typo 2021-10-25 17:12:17 +08:00
Billy Chan
4b1cac7f35
Refactoring 2021-10-25 17:05:27 +08:00
Billy Chan
6059cdd9ad
Remove unused EnumIter 2021-10-25 17:03:10 +08:00
Billy Chan
f20c64988d
Tests all DB 2021-10-25 16:52:02 +08:00
Billy Chan
8858d64dd0
create_table_from_entity with DB backend 2021-10-25 15:48:01 +08:00
Billy Chan
80c72004d1
Try Postgres enum 2021-10-21 15:43:50 +08:00
Billy Chan
734608471c
WIP 2021-10-20 18:54:08 +08:00
Billy Chan
d525c710ce
Merge remote-tracking branch 'origin/master' into active-enum 2021-10-20 18:43:39 +08:00
Billy Chan
868a469de0
Test integer enum 2021-10-20 18:02:23 +08:00
Billy Chan
32f82a0c9b Test self referencing relation 2021-10-20 16:38:10 +08:00
Billy Chan
b1e10aec86
Refactoring 2021-10-20 12:23:55 +08:00
Billy Chan
18f37150d7
Fixup 2021-10-20 10:49:26 +08:00
Billy Chan
8627c8d961
Draft ActiveEnum 2021-10-19 19:08:02 +08:00
Chris Tsang
55a4f32d5e
Merge pull request #248 from SeaQL/transaction-am-behavior-tests
Transaction & active model behavior tests
2021-10-15 23:43:47 +08:00
Billy Chan
351a78c784
Try as_ref 2021-10-15 22:48:49 +08:00
Billy Chan
01eff84ce8 Join with table alias 2021-10-15 22:28:39 +08:00
Billy Chan
23155dced1
Fixup 2021-10-15 18:04:49 +08:00
Billy Chan
7c18e19f56
Fixup 2021-10-15 17:52:46 +08:00
Billy Chan
13f5792f86
Test transaction 2021-10-15 17:43:40 +08:00
Billy Chan
cc96bb783c
Test ActiveModelBehavior 2021-10-15 17:43:40 +08:00
Chris Tsang
620972b724 Fixup 2021-10-15 16:10:07 +08:00
Chris Tsang
668fb64224 Refactor test suite 2021-10-15 15:46:25 +08:00
Billy Chan
b48f1251b0
Add #244 as test cases 2021-10-15 12:38:17 +08:00
Chris Tsang
75882b34cb Transaction with BEGIN 2021-10-14 18:33:13 +08:00
Chris Tsang
9abfdf4838 Test case for #244 2021-10-14 15:53:46 +08:00
Billy Chan
5339696da2
Merge branch 'master' into active-model-behavior 2021-10-12 20:37:00 +08:00
Chris Tsang
7bc6477091 Merge branch 'master' into transaction-3 2021-10-12 14:24:35 +08:00
Billy Chan
12800468b1
Test nested transaction 2021-10-11 23:02:32 +08:00
Chris Tsang
51b30ee837
Merge branch 'master' into transaction-3 2021-10-07 17:21:59 +08:00
Chris Tsang
30b90076ae Merge pull request #211 from SeaQL/error-no-record-updated
Throw error if none of the db rows are affected
2021-10-07 16:59:42 +08:00
Billy Chan
8caed80fd7
Merge branch 'master' into last-insert-id 2021-10-06 22:38:43 +08:00