214 Commits

Author SHA1 Message Date
Chris Tsang
82bad4a376 0.5.0 2022-01-01 16:05:36 +08:00
Billy Chan
aa7254179f
Prepare for 0.5.0-rc.1 (#404)
* docs: edit changelog

* test: update examples' sea-orm version

* docs: edit changelog
2021-12-31 00:41:47 +08:00
Chris Tsang
d5c9c65079 Revert save to return Self 2021-12-26 00:13:56 +08:00
Billy Chan
2d5aa2a61b
Log with tracing-subscriber (#399)
* chore: log examples with tracing-subscriber

* chore: log [issues] with tracing-subscriber

* chore: log [cli] with tracing-subscriber

* feat: tracing will emit log if tracing-subscriber is not setup
2021-12-24 23:59:37 +08:00
Billy Chan
adfb9ead54
Rework ActiveValue (#340)
* WIP

* Fixup

* Fixup

* Update docs & rename `unset`

* Deprecate `Unset()` and reexport `ActiveValue::NotSet`

* Docs

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2021-12-19 02:22:30 +08:00
Billy Chan
5104cd3573
Insert & Update Return Model (#339)
* Update insert & update API

* Update test cases

* Update README

* Fix clippy warnings

* Fixup

* Fixup
2021-12-18 14:30:10 +08:00
Chris Tsang
67a601ecca
Merge pull request #384 from Gabriel-Paulucci/master
Fix rocket version
2021-12-15 13:53:30 +08:00
Billy Chan
b2549576bc
Fix rocket_example 2021-12-15 12:25:12 +08:00
荒野無燈
951e678da5
refactor: update to Axum v0.4.2
Refs: https://github.com/tokio-rs/axum/blob/main/axum/CHANGELOG.md#042-06-december-2021
2021-12-15 02:59:17 +08:00
Billy Chan
d3acf4b156
Update tower-cookies dependency 2021-12-03 18:10:26 +08:00
Chris Tsang
49ef619619 Update examples 2021-11-19 23:29:15 +08:00
Billy Chan
ac804a1642
Imports PaginatorTrait by default making it backward compatible 2021-11-10 15:26:29 +08:00
jasper
4b11a10680 Update examples and test 2021-11-09 22:29:48 +08:00
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