1961 Commits

Author SHA1 Message Date
Billy Chan
01011cf0f4
Generate macro attribute "nullable" 2021-09-15 10:46:12 +08:00
Billy Chan
ca3dd2d2a1
cargo fmt 2021-09-15 10:45:09 +08:00
Billy Chan
39902deaef
Remove unused import 2021-09-15 10:44:24 +08:00
Chris Tsang
fbd390662b
Merge pull request #143 from SeaQL/codegen-entity-compact-fomat
Codegen for compact Entity format
2021-09-14 22:59:15 +08:00
Billy Chan
848a15856b
Fix test cases 2021-09-14 00:08:20 +08:00
Billy Chan
39c5a4d134
Derive attributes 2021-09-13 23:54:42 +08:00
Chris Tsang
d85e66c742 Merge branch 'merge-150' 2021-09-13 21:57:27 +08:00
Chris Tsang
d7ad11bfd9
Merge pull request #150 from Acidic9/patch-1
Add `DateTimeWithTimeZone` support for `DeriveEntityModel`
2021-09-13 21:55:54 +08:00
Chris Tsang
363b606d2c Docs 2021-09-13 21:52:05 +08:00
Chris Tsang
2ac8fe664e Docs 2021-09-12 22:17:17 +08:00
Ari Seyhun
1815e30405
Add DateTimeWithTimeZone support for DeriveEntityModel 2021-09-12 20:50:28 +09:30
Sam Samai
237dcaa6a9 Delete post 2021-09-12 21:08:39 +10:00
Sam Samai
c427e4e89b Edit post 2021-09-12 19:21:01 +10:00
Sam Samai
f97c081c2a Add new post 2021-09-12 17:12:20 +10:00
Sam Samai
5d7a9ca782 Extend from layout.html.tera 2021-09-12 16:41:03 +10:00
Sam Samai
2e8016d23c List posts with pagination 2021-09-12 16:35:43 +10:00
Sam Samai
fcacae04b8 Use DATABASE_URL from .env file 2021-09-12 11:56:51 +10:00
Sam Samai
1ba6b0b647 List posts from the DB 2021-09-12 11:39:53 +10:00
Sam Samai
8f3a45e6ae Use tera template and serve static assets 2021-09-12 10:07:00 +10:00
Chris Tsang
8d70137508 Docs 2021-09-11 23:30:44 +08:00
Chris Tsang
182c96e384 Fix clippy warning 2021-09-11 15:53:34 +08:00
Chris Tsang
56c8f2ea69
Merge pull request #144 from SeaQL/ss/rocket-pagination
Add pagination to the rocket example
2021-09-11 15:51:43 +08:00
Chris Tsang
236bc56f03 Persist posts_per_page across pages 2021-09-11 15:45:05 +08:00
Sam Samai
1c1283ca66 Actix example init 2021-09-11 17:02:59 +10:00
Sam Samai
918ce056bc Add optional posts_per_page query string 2021-09-11 16:14:25 +10:00
Billy Chan
f801590b9b
Remove unused sea-orm dep 2021-09-10 23:21:37 +08:00
Billy Chan
a6f117a908
sea-orm-cli with --expanded-format & --compact-format flags 2021-09-10 23:08:30 +08:00
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