784 Commits

Author SHA1 Message Date
Billy Chan
9c3aba8c0e
codegen of compact entity files 2021-09-10 22:28:08 +08:00
Billy Chan
10a5a34cd9
Move files 2021-09-10 22:28:08 +08:00
Chris Tsang
f96c8ed49b cargo fmt 2021-09-10 22:02:35 +08:00
Sam Samai
81c1bf0704 ROWS_PER_PAGE const 2021-09-10 21:32:26 +10:00
Sam Samai
66e9be195c Add pagination to the rocket example 2021-09-10 21:26:18 +10:00
Chris Tsang
62edf18582
Merge pull request #140 from SeaQL/test-vec-u8
Testing Vec<u8>
2021-09-10 17:37:31 +08:00
Billy Chan
744361627d Use sea-query 0.16 latest 2021-09-10 17:32:52 +08:00
Chris Tsang
c0ee423f0a Refactor ActiveModel insert logic 2021-09-10 17:32:19 +08:00
Billy Chan
ba276cdde5
DeriveEntityModel supports attribute type of Vec<u8> 2021-09-10 17:11:19 +08:00
Billy Chan
f65513eadf
Hotfix - mysql binary column mapping 2021-09-10 17:05:45 +08:00
Billy Chan
f4dba6bf62
Fix clippy 2021-09-10 17:05:45 +08:00
Billy Chan
cc5fde41bd
Testing Vec<u8> 2021-09-10 17:05:45 +08:00
Marco Napetti
c3084e425f
Initial lock support (#118)
* Initial lock support

* Move methods to QuerySelect trait

Co-authored-by: Marco Napetti <nappa85@therocktrading.com>
2021-09-10 16:35:57 +08:00
Billy Chan
889e9df923 Hotfix - ModelTrait::find_linked() filter with model's primary key 2021-09-10 16:34:04 +08:00
Chris Tsang
f56ac7b7f6 #129 Add set method to UpdateMany 2021-09-10 15:21:06 +08:00
Chris Tsang
1775ab478c
Merge pull request #132 from SeaQL/update-and-insert
Add ActiveModel insert & update
2021-09-10 14:30:54 +08:00
Billy Chan
c4cdfa1add
Refactor 2021-09-10 13:15:45 +08:00
Chris Tsang
19ec35f1b5 Revert breaking changes 2021-09-10 12:58:28 +08:00
Billy Chan
11208d627b Move ActiveModel CRUD actions into ActiveModelTrait 2021-09-10 12:58:27 +08:00
Billy Chan
dcaedd7d3a cargo fmt 2021-09-10 12:56:41 +08:00
Billy Chan
f4d1a52791 Change update behavior, add ActiveModel insert & update 2021-09-10 12:56:41 +08:00
Chris Tsang
eca3949ea9
Merge pull request #135 from SeaQL/entity-format
Entity format
2021-09-10 12:55:05 +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
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
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
d3132d339d Experiment on cake 2021-09-07 20:42:46 +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
Chris Tsang
e203237f4d
Merge pull request #128 from nappa85/entity_model_macro
EntityModel derive-macro
2021-09-07 20:29:28 +08:00
Chris Tsang
76378d6c84 #133 Implement TryGetable for Vec<u8> 2021-09-07 18:27:13 +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
Marco Napetti
a4d70dfa55
Merge branch 'entity-format' into entity_model_macro 2021-09-07 10:09:34 +02:00
Marco Napetti
c273cf0a39 Manage schema_name attribute, add prelude export, update example 2021-09-07 10:04:33 +02:00
Chris Tsang
6c810673c4 Move entity_to_table_create_statement 2021-09-07 15:55:58 +08:00
Billy Chan
b100e32ffd Rename entity_to_table_create_statement 2021-09-07 15:47:04 +08:00
Chris Tsang
4a701d5e2d Tweak rocket example 2021-09-06 23:28:56 +08:00
Billy Chan
a5b230f67c Add back panics 2021-09-06 22:30:51 +08:00
Billy Chan
691221e714 Hotfix - rocket_example 2021-09-06 22:30:51 +08:00
Billy Chan
26cd0846d2 Remove generics on find_by_id 2021-09-06 22:30:51 +08:00
Marco Napetti
a4b4f4925f Minor comments fixes 2021-09-06 12:58:47 +02:00
Marco Napetti
ab925e8f11 Manage auto_increment attribute, call nullable() instead of old null() 2021-09-06 12:41:09 +02:00