45 Commits

Author SHA1 Message Date
Billy Chan
8faabf4076
examples: Fix table identifier (#812) 2022-06-22 16:21:23 +08:00
Chris Tsang
4301383b40 Tweaks 2022-06-12 22:30:34 +08:00
Billy Chan
9b41f1c1b1
Migration shouldn't depends on symbol provided by entity crate (#785)
* Migration shouldn't depends on symbol provided by entity crate

* Add docs
2022-06-12 22:25:32 +08:00
Billy Chan
183639dc8c
Migration without depending on async-std (#758)
* Migration without depending on async-std runtime

* Update examples

* Fixup
2022-05-23 23:24:07 +08:00
Billy Chan
c3db8f4b65
Examples: entity & application crate depends on SeaORM with minimum required features enabled (#723) 2022-05-14 13:24:39 +08:00
Billy Chan
cdd6c29845
Fixup 2022-05-10 12:06:49 +08:00
Billy Chan
498c0154ca Restructure SeaORM migration
Bump codegen's sea-query version [cli]

Update CLI subcommand method

Move migration utility into sea-orm-migration
2022-05-09 12:30:55 +08:00
Billy Chan
904700cf56
Update examples 2022-04-06 19:39:42 +08:00
Cobalt
6a22207944
chore: Upgrade to Actix Web 4 (#638)
* chore: Upgrade to actix-web 4

* fix: Update example names for CI tests
2022-04-02 22:00:49 +08:00
Billy Chan
0d473444ba
Update examples dependencies 2022-03-27 17:41:27 +08:00
Billy Chan
f418c4e580
Examples with migration (#509)
* Update examples sea-orm version

* Update example sea-schema version

* Update [cli] sea-schema version

* Fix [cli] cargo publish failed

* Update CHANGELOG

* Edit rocket example

* Poem example with migration

* Axum example with migration

* Refactoring

* Actix4 example with migration

* Actix example with migration

* Use sea_schema::migration::prelude
2022-02-09 11:45:04 +08:00
Billy Chan
cd98137ad0 Update examples sea-orm version
Update example sea-schema version

Update [cli] sea-schema version
2022-02-07 20:55:15 +08:00
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
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
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
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
ab8fec21b3 Fix build errors 2021-10-04 12:09:50 +08:00
Chris Tsang
5c0a5be9ad Readme 2021-10-02 14:20:49 +08:00
Chris Tsang
50a8ae41c0 Tweaks 2021-10-01 11:11:48 +08:00
Chris Tsang
6861802a6d Update Rocket & Actix examples 2021-09-22 18:02:50 +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
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
Sam Samai
31bc662f3f Use Arc to pass database connection to requests 2021-09-19 21:16:43 +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
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
Sam Samai
1c1283ca66 Actix example init 2021-09-11 17:02:59 +10:00