110 Commits

Author SHA1 Message Date
Billy Chan
c33cbb23fa
ci: disable clippy checks on sea-orm-cli until we upgraded clap to v4 (clap-rs/clap#4849) 2023-04-22 00:50:46 +08:00
Billy Chan
9a727ac4b0
ci: Do not deny warnings until we upgraded clap to v4 (clap-rs/clap#4849) 2023-04-22 00:33:11 +08:00
Billy Chan
2c082558df
Generate entity for duplicated many-to-many paths (#1435)
* Generate entity for duplicated many-to-many paths

* CI: run cargo fmt with nightly channel
2023-04-13 11:16:49 +08:00
Chris Tsang
1c3c7af7b8 Update Issue Template 2023-02-22 14:39:23 +08:00
Chris Tsang
81c860e414 Trying to cleanup CI 2023-01-28 08:30:00 +08:00
Billy Chan
b21abf617f
Fix clippy warnings (#1437) 2023-01-31 16:46:44 +08:00
Billy Chan
23b6e66c2e
[CI] use dtolnay/rust-toolchain (#1284)
* Try dtolnay/rust-toolchain

* Fixup

* Remove deprecated set-output

* Fixup

* Remove unused
2022-12-06 20:38:23 +08:00
Billy Chan
775568080b
Update CI 2022-11-10 23:36:40 +08:00
Billy Chan
4255a0abb8
Update issue template 2022-11-10 15:40:23 +08:00
Billy Chan
309dd816b6
Update issue template 2022-11-10 15:22:47 +08:00
Billy Chan
708fea5ecc
Update issue template 2022-11-10 14:58:12 +08:00
Billy Chan
6e6abd17cd
Revert "Update issue template"
This reverts commit 46bebb37758e2363acc547b4cc7e278953958ada.
2022-11-10 14:45:23 +08:00
Billy Chan
46bebb3775
Update issue template 2022-11-10 14:44:50 +08:00
Chris Tsang
695c80e2b3 Revert "Update issue templates"
This reverts commit 90ec2e5527e2975c2c3ce04cefc24ee271945d6c.
2022-11-10 13:27:59 +08:00
Chris Tsang
90ec2e5527
Update issue templates 2022-11-10 13:25:43 +08:00
Billy Chan
ccfb59f74a
Skip running CI on MD changes 2022-11-03 17:14:56 +08:00
Billy Chan
4cf58af4b1
Skip running CI on MD changes (#1184) 2022-11-03 10:35:27 +08:00
Billy Chan
a6a1e184a4
[CI] upgrade actions/checkout to v3 (#1131) 2022-10-19 14:25:02 +08:00
Chris Tsang
ae0231d4a5 CI 2022-10-16 17:25:58 +08:00
Billy Chan
207e2df484
Should run this and cancel previous CI 2022-09-26 00:30:15 +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
kyoto7250
dd545441d3
introduce rustfmt (#919)
* introduce rustfmt

* Cargofmt on all sea-orm crates & examples

* Revert testing script

* cargo fmt --manifest-path sea-orm-rocket/Cargo.toml --all

* add a script for formatting

* add nightly component for formatting

* set timeout and manual nightly install  in github action

* add flag for manifest-path

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-08-01 18:30:43 +08:00
Billy Chan
87a9eb9d15
Run CI only on latest PR commit (#920)
* Run CI only on latest PR commit

* CI of previous commit should be cancelled...

* Revert
2022-07-28 12:00:04 +08:00
Billy Chan
41116499e0
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]
2022-07-21 13:46:12 +08:00
Billy Chan
1a3e8c456a
[CI] run clippy checks & fix clippy warnings (#840)
* Run clippy checks

* Fix clippy warnings

* Clippy checks for `sea-orm-*` crates

* Fix clippy warnings

* Fixup
2022-07-10 15:38:38 +08:00
Chris Tsang
5ff6063fe1 Reduce CI burden 2022-07-02 14:19:54 +08:00
Billy Chan
1ea8b457bf
Bump CI actions/cache to v3 (#784) 2022-06-02 16:34:59 +08:00
Chris Tsang
7d36e43ac1 CI 2022-05-14 23:11:54 +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
Chris Tsang
59576b9d47 Sunset Postgres 9 2022-05-10 00:16:07 +08:00
Billy Chan
840f8f6148
DeriveEntityModel macros override column name (#695)
* Override column name with the name of model field in `DeriveEntityModel` macros [issues]

* Fixup: trim prefix and tailing underscore

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-05-09 22:08:59 +08:00
Billy Chan
5a123b36aa
DerivePrimaryKey with custom primary key column name (#694)
* `DerivePrimaryKey` with custom primary key column name

* Add test cases [issues]
2022-05-09 22:00:04 +08:00
Chris Tsang
730b52088f Add tests 2022-05-09 12:31:12 +08:00
Chris Tsang
31edb2c409 Rename 2022-04-05 21:23:55 +08:00
Giri Priyadarshan
17a3ad9620
tonic gRPC example (#659)
* tonic gRPC example

* minor change to client output

Co-authored-by: Chris Tsang <chris.2y3@outlook.com>
2022-04-05 20:35:33 +08:00
Chris Tsang
311a14a470 Rename example 2022-04-03 22:12:48 +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
Mike
290d2c5172
add example for integrate with jsonrpsee (#632)
* add example for integrate with jsonrpsee

* Update CI
2022-03-26 17:40:06 +08:00
Chris Tsang
da7cc541eb
Merge pull request #584 from SeaQL/pulls/471
Pulls/471
2022-03-21 01:17:46 +08:00
Chris Tsang
929b85131c [issues] 2022-03-21 01:12:54 +08:00
Aaron Leopold
7ba6144ead
Added axum graphql example (#587)
* added example for axum + graphql

* clean up

* removed macos file

* Pr/587 (#1)

* Migrate on startup

* Update CI

* Add .gitignore

* Add README

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>

Co-authored-by: Billy Chan <ccw.billy.123@gmail.com>
2022-03-16 18:16:19 +08:00
Billy Chan
d541f9e6ec
Optimize GitHub actions 2022-02-07 10:39:14 +08:00
Chris Tsang
d7cdc4ff7d Temporary fix 2022-02-06 00:03:32 +08:00
Sunli
211029356c Add Poem example 2022-01-13 12:24:42 +08:00
Billy Chan
4980810867
ci: run simple clippy 2021-12-25 14:01:56 +08:00
Billy Chan
90122374aa
Add test cases [issues] 2021-12-07 16:13:25 +08:00
Billy Chan
1229287fd8
Support Up to 6 Values Composite Primary Key (#353)
* Support up to 6 composite primary key

* Test [issues]

* Test [issues]
2021-12-04 20:57:05 +08:00
Billy Chan
b2985a97c8
Displaying sponsor button 2021-11-18 10:59:47 +08:00
Chris Tsang
0deedddf28
Merge pull request #292 from SeaQL/returning
Returning
2021-11-17 17:41:28 +08:00
Billy Chan
f809242c1f
Test [issues] 2021-11-16 18:40:37 +08:00