201 Commits

Author SHA1 Message Date
Billy Chan
cb996d8460
Fix clippy warnings 2021-11-08 12:53:12 +08:00
Billy Chan
666a5bb068
cargo fmt 2021-11-08 12:50:38 +08:00
jasper
e0302173c2 Add axum example 2021-11-06 17:33:51 +08:00
Carter Snook
058f6d5d2b
chore: update to Rust Edition 2021 (#273) 2021-10-26 17:27:53 +08:00
Chris Tsang
349108dad6 Update examples 2021-10-16 02:10:32 +08:00
Chris Tsang
47f31fb27d Edit Rocket example 2021-10-13 19:19:23 +08:00
Chris Tsang
608a49292f Example of using a transaction 2021-10-13 16:51:12 +08:00
Chris Tsang
1d6e6066cd Allow disable SQLx logging 2021-10-13 16:41:51 +08:00
Chris Tsang
bf595ca926 Use Figment config from Rocket 2021-10-13 15:54:49 +08:00
Chris Tsang
7bc6477091 Merge branch 'master' into transaction-3 2021-10-12 14:24:35 +08:00
Chris Tsang
f9dd9d242a Edit 2021-10-12 13:42:24 +08:00
Chris Tsang
8feca6be7b Edit 2021-10-12 12:21:17 +08:00
Chris Tsang
4a1b8fabc5 Rework Rocket Db Pool 2021-10-12 03:10:33 +08:00
Chris Tsang
c24d7704d9 Move examples #232 2021-10-09 14:38:43 +08:00
Chris Tsang
ab8fec21b3 Fix build errors 2021-10-04 12:09:50 +08:00
Chris Tsang
e7b822c65d cargo fmt 2021-10-04 11:44:02 +08:00
Marco Napetti
02ebc9745c Transaction 3 2021-10-04 11:39:16 +08:00
Chris Tsang
5c0a5be9ad Readme 2021-10-02 14:20:49 +08:00
Chris Tsang
399715521e Rename folder 2021-10-01 11:14:59 +08:00
Chris Tsang
50a8ae41c0 Tweaks 2021-10-01 11:11:48 +08:00
Sam Samai
0c2b0d608d Port actix example to Actix 4 Beta 2021-09-23 22:00:30 +10:00
Chris Tsang
6861802a6d Update Rocket & Actix examples 2021-09-22 18:02:50 +08:00
Chris Tsang
aeea07c8ba Rocket example to use the clone interface 2021-09-22 16:59:21 +08:00
Chris Tsang
c80621916a Fix conflict 2021-09-21 22:00:02 +08:00
Chris Tsang
aec111e035 Tweaks 2021-09-21 18:32:54 +08:00
Chris Tsang
2346d0beb8 Cargo fmt 2021-09-21 18:19:52 +08:00
Chris Tsang
547429c377 Sort by id 2021-09-21 18:19:21 +08:00
Chris Tsang
d6f0d3c35a Fix clippy warnings 2021-09-21 18:13:48 +08:00
Chris Tsang
6d9727050e Use compact Entity format 2021-09-21 18:13:35 +08:00
Chris Tsang
f7b42ebc0e Clean up Cargo.toml 2021-09-21 18:04:26 +08:00
Sam Samai
fac33f4019 Merge branch 'master' into ss/actix-example 2021-09-21 18:22:31 +10:00
Sam Samai
ac8d84ea44 Just clone the state for each thread 2021-09-21 18:21:55 +10:00
Sam Samai
8a618f88c7 Start from page 1 2021-09-20 21:00:51 +10:00
Sam Samai
daa5ff77c0 Define SharedState type 2021-09-20 20:55:22 +10:00
Billy Chan
bb225b12ee Rocket example page number starts from one 2021-09-20 18:30:31 +08:00
Billy Chan
ce35317daf Refactor rocket example 2021-09-20 18:30:31 +08:00
Sam Samai
54edd87706 Merge branch 'master' into ss/actix-example 2021-09-19 21:43:10 +10:00
Sam Samai
31bc662f3f Use Arc to pass database connection to requests 2021-09-19 21:16:43 +10:00
Chris Tsang
8443f566cf Tokio example 2021-09-18 17:44:43 +08:00
Chris Tsang
004653e86d Simplify Cargo 2021-09-18 03:37:27 +08:00
Chris Tsang
77bc11e1e5 Use compact entity format for Rocket example 2021-09-18 03:10:07 +08:00
Sam Samai
1a4392dd0b Merge branch 'master' into ss/actix-example 2021-09-17 20:17:54 +10:00
Sam Samai
d623474d7c Refactor flash 2021-09-17 20:17:17 +10: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
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