784 Commits

Author SHA1 Message Date
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
5fe8c7c9c4
Revert adding #[sea_orm(ignore)] to tests entities 2021-09-17 17:08:55 +08:00
Chris Tsang
a280a227d8 TODO 2021-09-17 16:04:07 +08:00
Billy Chan
6e7e2a59d3
cargo fmt 2021-09-17 15:16:30 +08:00
Chris Tsang
2e1371537a Merge FromQueryResultExt into FromQueryResult 2021-09-17 15:04:37 +08:00
Chris Tsang
94b5fbf413
Merge pull request #167 from MuhannadAlrusayni/master
Improve working with raw SQL
2021-09-17 14:58:18 +08:00
Chris Tsang
8564512350
Merge pull request #168 from SeaQL/example/log
Add example of debug log support
2021-09-17 14:34:07 +08:00
Chris Tsang
905b7c4255
Merge pull request #165 from SeaQL/cli/log
Add CLI verbose option
2021-09-17 14:33:29 +08:00
Chris Tsang
51a690ba99
Update Cargo.toml 2021-09-17 12:26:31 +08:00
Chris Tsang
2b36ab0ae0
Update Cargo.toml 2021-09-17 12:23:06 +08:00
Muhannad Alrusayni
e71a74b0c1 Improve working with raw SQL
- Add `find_by_statement` to `T: FromQueryResult`
- Add `SelectorRaw::from_statement` constructor
2021-09-16 18:06:02 +03:00
Sam Samai
8b46a89e2c Add flash messages 2021-09-16 22:47:11 +10:00
Billy Chan
c1e399ae18
Add example of debug log support 2021-09-16 18:30:05 +08:00
Muhannad Alrusayni
9107c9010a add into_model() for Statement 2021-09-16 11:47:31 +03:00
Billy Chan
beca48d48e
Refactor 2021-09-16 14:59:48 +08:00
Billy Chan
4e7bf8b836
Testing 2021-09-16 13:11:26 +08:00
Billy Chan
16e41be9df
Add & parse "ignore" macro attribute 2021-09-16 13:11:04 +08:00
Billy Chan
962d895249
Add CLI verbose option 2021-09-16 10:14:01 +08:00
Chris Tsang
38a4d3a810
Merge pull request #157 from SeaQL/codegen-fixup
Codegen include `nullable` attribute when `column_type` is explicitly defined
2021-09-15 13:07:51 +08:00
Chris Tsang
dc10caac4c Fix sea-schema dependency 2021-09-15 12:57:50 +08:00
Billy Chan
5cb1088fd9 Update sea-query dependency 2021-09-15 12:40:37 +08:00
Chris Tsang
8a4996300f Refactor Link 2021-09-15 12:17:21 +08:00
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