115 Commits

Author SHA1 Message Date
Billy Chan
ca09ac9333
update examples 2023-03-16 18:28:04 +08:00
Billy Chan
6b1463ddd0
update examples 2023-03-10 22:13:03 +08:00
Chris Tsang
f9caf9d6dd update examples 2023-02-07 02:51:00 +08:00
Chris Tsang
c4df4999f2 update examples 2023-02-04 16:10:21 +08:00
Chris Tsang
f66834f6e6 update examples 2023-02-01 23:46:42 +08:00
Billy Chan
4e3a45c2f7
Fix clippy warnings (#1436) 2023-01-31 15:52:57 +08:00
Billy Chan
cbd7a8d1c9
Cleanup the use of vec![] (#1367)
* Public methods accept any IntoIterator as argument

* refactoring
2023-01-11 14:17:06 +08:00
Billy Chan
b2185af559
Cleaning up dependency (#1300)
* Dependency version cleanup

* Update build tool

* Disable default features

* [cli] disable default features
2022-12-16 15:52:00 +08:00
Chris Tsang
3be41808e9 update examples 2022-11-14 15:08:25 +08:00
Chris Tsang
00b45e25c4 update examples 2022-11-06 21:03:40 +08:00
Chris Tsang
79430e3dd1 Update example 2022-11-06 13:00:05 +08:00
Jakob
9952aa6740
Make sqlx logging configurable for seaorm-rocket (#1192) 2022-11-06 12:03:07 +08:00
Billy Chan
ecf49b5155
update examples 2022-10-27 16:03:45 +08:00
Chris Tsang
8d7aff12ba sea-orm-rocket 0.5.1 2022-10-16 17:33:59 +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
liberwang1013
fff0c87a6d
replaced usize with u64 in PaginatorTrait (#789)
undefined
2022-08-20 22:43:17 +08:00
Chris Tsang
85a829924c update examples 2022-08-20 14:06:55 +08:00
Billy Chan
43495de0aa
Fix clippy warnings - 1 (#967)
* Fix clippy warnings

* cargo fmt

* Fix clippy warnings

* cargo fmt
2022-08-12 20:02:53 +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
1054d6451c
Use file!() macro to avoid manually defining the name of migration (#736)
* Add `DeriveMigrationName`

* CLI migrate generate without replacing migration name

* Update migrations

* Fixup
2022-06-29 00:42:59 +08:00
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
9d2cae44b3
Migrator CLI Fixup (#708)
* CI compile migrator CLI

* sea-orm-migration's CLI with only migration subcommand

* Fix clippy warnings

* Fixup

* `sea-orm-cli migrate init`: write sea-orm-migration version based on CLI version
2022-05-10 23:24:23 +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
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