33 Commits

Author SHA1 Message Date
df51d
0b15f4f5e2
change: rename core crate to service in examples (#1662)
* change: rename `core` crate to `service` in examples

* fix(jsonrpsee-example): broken dependency
2023-05-23 10:33:44 +08:00
Sanford Pun
5143307b3e
Demonstrate how to mock test SeaORM by separating core implementation from the web API (#890)
* Move core implementations to a standalone crate

* Set up integration test skeleton in `core`

* Demonstrate mock testing with query

* Move Rocket api code to a standalone crate

* Add mock execution

* Add MyDataMyConsent in COMMUNITY.md (#889)

* Add MyDataMyConsent in COMMUNITY.md

* Update MyDataMyConsent description in COMMUNITY.md

* Update COMMUNITY.md

Chronological order

* [cli] bump sea-schema to 0.9.3 (SeaQL/sea-orm#876)

* Update CHNAGELOG PR links

* 0.9.1 CHANGELOG

* Auto discover and run all issues & examples CI (#903)

* Auto discover and run all [issues] CI

* Auto discover and run all examples CI

* Fixup

* Testing

* Test [issues]

* Compile prepare_mock_db() conditionally based on "mock" feature

* Update workflow job to run mock test if `core` folder exists

* Update Actix3 example

* Fix merge conflict human error

* Update usize used in paginate to u64 (PR#789)

* Update sea-orm version in the Rocket example to 0.10.0

* Fix GitHub workflow to run mock test for core crates

* Increase the robustness of core crate check by verifying that the `core` folder is a crate

* Update Actix(4) example

* Update Axum example

* Update GraphQL example

* Update Jsonrpsee example

* Update Poem example

* Update Tonic example

* Cargo fmt

* Update Salvo example

* Update path of core/Cargo.toml in README.md

* Add mock test instruction in README.md

* Refactoring

* Fix Rocket examples

Co-authored-by: Amit Goyani <63532626+itsAmitGoyani@users.noreply.github.com>
Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-09-23 12:57:43 +08:00
Chris Tsang
13b53369e2 Prepare for 0.10.0 2022-08-20 22:47:31 +08:00
Chris Tsang
85a829924c update examples 2022-08-20 14:06:55 +08:00
Chris Tsang
469770444c update examples 2022-07-22 00:14:28 +08:00
Billy Chan
50f42075ab
Update deployment script to update example automatically (#865)
* Update deployment script

* update examples

* Split deployment scripts

* Fixup

* Typo
2022-07-12 12:02:24 +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
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
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
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
6861802a6d Update Rocket & Actix examples 2021-09-22 18:02:50 +08:00
Chris Tsang
f7b42ebc0e Clean up Cargo.toml 2021-09-21 18:04:26 +08:00
Chris Tsang
004653e86d Simplify Cargo 2021-09-18 03:37:27 +08:00
Chris Tsang
dd7585c4e6 Tweak rocket example 2021-09-06 17:57:54 +08:00
Chris Tsang
9a1b771e41 0.2.0 2021-09-03 23:14:54 +08:00
Chris Tsang
60fdc78766 Move RocketDbPool 2021-09-03 23:12:49 +08:00
Chris Tsang
5c23cf7739 Cargo 2021-09-03 22:37:34 +08:00
Sam Samai
a5ea54df61 Renders HTML pages 2021-09-02 20:20:02 +10:00
Sam Samai
13364ab63c Use the database url in Rocket.toml to connect to mysql/postgres 2021-09-01 19:59:29 +10:00
Billy Chan
dfe26f9b7c
Without direct rocket dependency 2021-08-30 22:34:02 +08:00
Sam Samai
1126aae479 Generalize over MySQL and Postgres 2021-08-29 21:37:55 +10:00
Billy Chan
87d4f09931
Add rocket-mysql driver 2021-08-25 23:05:30 +08:00
Sam Samai
cd9793417b WIP Runs 2021-08-25 22:17:11 +10:00
Sam Samai
0998b64ed4 WIP 2021-08-22 14:18:27 +10:00
Sam Samai
c6480635c0 WIP 2021-08-21 21:58:20 +10:00
Sam Samai
53bbf32229 Init Rocket example 2021-08-12 22:05:06 +10:00