134 Commits

Author SHA1 Message Date
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
Chris Tsang
e9a460b47d Fix build error 2022-02-07 21:40:05 +08:00
Chris Tsang
54b1f4a226 Use caret requirements 2022-02-07 21:32:35 +08:00
Chris Tsang
ea0342af06 use sea_schema::migration::prelude 2022-02-07 21:28:06 +08:00
Chris Tsang
f8ab11d36a Use sea-schema 0.5.1 2022-02-07 21:27:22 +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
09e2ac841a Fix sea-orm dependency 2022-02-06 00:07:18 +08:00
Chris Tsang
3cde517d2a Fix sea-schema dependency 2022-02-05 20:58:22 +08:00
Billy Chan
8eb095385d Migration (#335)
* Refactor `ConnectionTrait`

* Refactoring

* Build index & foreign key statements

* Fix imports

* Fixup

* Rocket example with migration

* async-std compatible with the tokio 1.0 runtime

* Use reexported dependency

* Compile without selecting any db backend

* Updating sea-orm-cli dep

* sea-orm-cli migrate commands

* cargo fmt

* Test [cli]

* Refactoring

* Clap app name should be "sea-orm-cli"

* Correctly capture MIGRATION_DIR

* Rename README

* Add `sea-orm-cli migrate init` command

* Update README

* Try restructured sea-query dependency (SeaQL/sea-schema#41)

* Set `DATABASE_URL` environment variable
2022-02-05 20:34:54 +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
b2549576bc
Fix rocket_example 2021-12-15 12:25:12 +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
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
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
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
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
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
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
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
f97c081c2a Add new post 2021-09-12 17:12:20 +10:00
Sam Samai
8f3a45e6ae Use tera template and serve static assets 2021-09-12 10:07:00 +10:00
Chris Tsang
236bc56f03 Persist posts_per_page across pages 2021-09-11 15:45:05 +08:00
Sam Samai
918ce056bc Add optional posts_per_page query string 2021-09-11 16:14:25 +10: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
4a701d5e2d Tweak rocket example 2021-09-06 23:28:56 +08:00
Billy Chan
691221e714 Hotfix - rocket_example 2021-09-06 22:30:51 +08:00
Chris Tsang
dd7585c4e6 Tweak rocket example 2021-09-06 17:57:54 +08:00
Chris Tsang
27c73401ca Tweak rocket example 2021-09-06 10:54:53 +08:00