From 311a14a470d6fca4c0726d7cb29db881450572ed Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Sun, 3 Apr 2022 22:06:23 +0800 Subject: [PATCH] Rename example --- .github/workflows/rust.yml | 2 +- README.md | 2 +- .../{axum-graphql_example => graphql_example}/.env | 0 .../.gitignore | 0 .../Cargo.toml | 2 +- .../README.md | 0 .../Screenshot1.png | Bin .../Screenshot2.png | Bin .../entity/Cargo.toml | 0 .../entity/src/lib.rs | 0 .../entity/src/note.rs | 0 .../migration/Cargo.toml | 0 .../migration/README.md | 0 .../migration/src/lib.rs | 0 .../migration/src/m20220101_000001_create_table.rs | 0 .../migration/src/main.rs | 0 .../src/db.rs | 0 .../src/graphql/mod.rs | 0 .../src/graphql/mutation/mod.rs | 0 .../src/graphql/mutation/note.rs | 0 .../src/graphql/query/mod.rs | 0 .../src/graphql/query/note.rs | 0 .../src/graphql/schema.rs | 0 .../src/main.rs | 0 src/lib.rs | 2 +- 25 files changed, 4 insertions(+), 4 deletions(-) rename examples/{axum-graphql_example => graphql_example}/.env (100%) rename examples/{axum-graphql_example => graphql_example}/.gitignore (100%) rename examples/{axum-graphql_example => graphql_example}/Cargo.toml (93%) rename examples/{axum-graphql_example => graphql_example}/README.md (100%) rename examples/{axum-graphql_example => graphql_example}/Screenshot1.png (100%) rename examples/{axum-graphql_example => graphql_example}/Screenshot2.png (100%) rename examples/{axum-graphql_example => graphql_example}/entity/Cargo.toml (100%) rename examples/{axum-graphql_example => graphql_example}/entity/src/lib.rs (100%) rename examples/{axum-graphql_example => graphql_example}/entity/src/note.rs (100%) rename examples/{axum-graphql_example => graphql_example}/migration/Cargo.toml (100%) rename examples/{axum-graphql_example => graphql_example}/migration/README.md (100%) rename examples/{axum-graphql_example => graphql_example}/migration/src/lib.rs (100%) rename examples/{axum-graphql_example => graphql_example}/migration/src/m20220101_000001_create_table.rs (100%) rename examples/{axum-graphql_example => graphql_example}/migration/src/main.rs (100%) rename examples/{axum-graphql_example => graphql_example}/src/db.rs (100%) rename examples/{axum-graphql_example => graphql_example}/src/graphql/mod.rs (100%) rename examples/{axum-graphql_example => graphql_example}/src/graphql/mutation/mod.rs (100%) rename examples/{axum-graphql_example => graphql_example}/src/graphql/mutation/note.rs (100%) rename examples/{axum-graphql_example => graphql_example}/src/graphql/query/mod.rs (100%) rename examples/{axum-graphql_example => graphql_example}/src/graphql/query/note.rs (100%) rename examples/{axum-graphql_example => graphql_example}/src/graphql/schema.rs (100%) rename examples/{axum-graphql_example => graphql_example}/src/main.rs (100%) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7d544aaf..f9d7280f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -293,7 +293,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - path: [basic, actix_example, actix3_example, axum_example, axum-graphql_example, rocket_example, poem_example, jsonrpsee_example] + path: [basic, actix_example, actix3_example, axum_example, graphql_example, rocket_example, poem_example, jsonrpsee_example] steps: - uses: actions/checkout@v2 diff --git a/README.md b/README.md index 8d2a3de3..c214f588 100644 --- a/README.md +++ b/README.md @@ -29,8 +29,8 @@ Join our Discord server to chat with others in the SeaQL community! + [Rocket Example](https://github.com/SeaQL/sea-orm/tree/master/examples/rocket_example) + [Actix Example](https://github.com/SeaQL/sea-orm/tree/master/examples/actix_example) + [Axum Example](https://github.com/SeaQL/sea-orm/tree/master/examples/axum_example) -+ [Axum-GraphQL Example](https://github.com/SeaQL/sea-orm/tree/master/examples/axum-graphql_example) + [Poem Example](https://github.com/SeaQL/sea-orm/tree/master/examples/poem_example) ++ [GraphQL Example](https://github.com/SeaQL/sea-orm/tree/master/examples/graphql_example) ## Features diff --git a/examples/axum-graphql_example/.env b/examples/graphql_example/.env similarity index 100% rename from examples/axum-graphql_example/.env rename to examples/graphql_example/.env diff --git a/examples/axum-graphql_example/.gitignore b/examples/graphql_example/.gitignore similarity index 100% rename from examples/axum-graphql_example/.gitignore rename to examples/graphql_example/.gitignore diff --git a/examples/axum-graphql_example/Cargo.toml b/examples/graphql_example/Cargo.toml similarity index 93% rename from examples/axum-graphql_example/Cargo.toml rename to examples/graphql_example/Cargo.toml index 6f8dd51c..7e906603 100644 --- a/examples/axum-graphql_example/Cargo.toml +++ b/examples/graphql_example/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "axum-graphql" +name = "sea-orm-graphql-example" authors = ["Aaron Leopold "] version = "0.1.0" edition = "2021" diff --git a/examples/axum-graphql_example/README.md b/examples/graphql_example/README.md similarity index 100% rename from examples/axum-graphql_example/README.md rename to examples/graphql_example/README.md diff --git a/examples/axum-graphql_example/Screenshot1.png b/examples/graphql_example/Screenshot1.png similarity index 100% rename from examples/axum-graphql_example/Screenshot1.png rename to examples/graphql_example/Screenshot1.png diff --git a/examples/axum-graphql_example/Screenshot2.png b/examples/graphql_example/Screenshot2.png similarity index 100% rename from examples/axum-graphql_example/Screenshot2.png rename to examples/graphql_example/Screenshot2.png diff --git a/examples/axum-graphql_example/entity/Cargo.toml b/examples/graphql_example/entity/Cargo.toml similarity index 100% rename from examples/axum-graphql_example/entity/Cargo.toml rename to examples/graphql_example/entity/Cargo.toml diff --git a/examples/axum-graphql_example/entity/src/lib.rs b/examples/graphql_example/entity/src/lib.rs similarity index 100% rename from examples/axum-graphql_example/entity/src/lib.rs rename to examples/graphql_example/entity/src/lib.rs diff --git a/examples/axum-graphql_example/entity/src/note.rs b/examples/graphql_example/entity/src/note.rs similarity index 100% rename from examples/axum-graphql_example/entity/src/note.rs rename to examples/graphql_example/entity/src/note.rs diff --git a/examples/axum-graphql_example/migration/Cargo.toml b/examples/graphql_example/migration/Cargo.toml similarity index 100% rename from examples/axum-graphql_example/migration/Cargo.toml rename to examples/graphql_example/migration/Cargo.toml diff --git a/examples/axum-graphql_example/migration/README.md b/examples/graphql_example/migration/README.md similarity index 100% rename from examples/axum-graphql_example/migration/README.md rename to examples/graphql_example/migration/README.md diff --git a/examples/axum-graphql_example/migration/src/lib.rs b/examples/graphql_example/migration/src/lib.rs similarity index 100% rename from examples/axum-graphql_example/migration/src/lib.rs rename to examples/graphql_example/migration/src/lib.rs diff --git a/examples/axum-graphql_example/migration/src/m20220101_000001_create_table.rs b/examples/graphql_example/migration/src/m20220101_000001_create_table.rs similarity index 100% rename from examples/axum-graphql_example/migration/src/m20220101_000001_create_table.rs rename to examples/graphql_example/migration/src/m20220101_000001_create_table.rs diff --git a/examples/axum-graphql_example/migration/src/main.rs b/examples/graphql_example/migration/src/main.rs similarity index 100% rename from examples/axum-graphql_example/migration/src/main.rs rename to examples/graphql_example/migration/src/main.rs diff --git a/examples/axum-graphql_example/src/db.rs b/examples/graphql_example/src/db.rs similarity index 100% rename from examples/axum-graphql_example/src/db.rs rename to examples/graphql_example/src/db.rs diff --git a/examples/axum-graphql_example/src/graphql/mod.rs b/examples/graphql_example/src/graphql/mod.rs similarity index 100% rename from examples/axum-graphql_example/src/graphql/mod.rs rename to examples/graphql_example/src/graphql/mod.rs diff --git a/examples/axum-graphql_example/src/graphql/mutation/mod.rs b/examples/graphql_example/src/graphql/mutation/mod.rs similarity index 100% rename from examples/axum-graphql_example/src/graphql/mutation/mod.rs rename to examples/graphql_example/src/graphql/mutation/mod.rs diff --git a/examples/axum-graphql_example/src/graphql/mutation/note.rs b/examples/graphql_example/src/graphql/mutation/note.rs similarity index 100% rename from examples/axum-graphql_example/src/graphql/mutation/note.rs rename to examples/graphql_example/src/graphql/mutation/note.rs diff --git a/examples/axum-graphql_example/src/graphql/query/mod.rs b/examples/graphql_example/src/graphql/query/mod.rs similarity index 100% rename from examples/axum-graphql_example/src/graphql/query/mod.rs rename to examples/graphql_example/src/graphql/query/mod.rs diff --git a/examples/axum-graphql_example/src/graphql/query/note.rs b/examples/graphql_example/src/graphql/query/note.rs similarity index 100% rename from examples/axum-graphql_example/src/graphql/query/note.rs rename to examples/graphql_example/src/graphql/query/note.rs diff --git a/examples/axum-graphql_example/src/graphql/schema.rs b/examples/graphql_example/src/graphql/schema.rs similarity index 100% rename from examples/axum-graphql_example/src/graphql/schema.rs rename to examples/graphql_example/src/graphql/schema.rs diff --git a/examples/axum-graphql_example/src/main.rs b/examples/graphql_example/src/main.rs similarity index 100% rename from examples/axum-graphql_example/src/main.rs rename to examples/graphql_example/src/main.rs diff --git a/src/lib.rs b/src/lib.rs index dde6ae0c..c9aa3525 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -37,8 +37,8 @@ //! + [Rocket Example](https://github.com/SeaQL/sea-orm/tree/master/examples/rocket_example) //! + [Actix Example](https://github.com/SeaQL/sea-orm/tree/master/examples/actix_example) //! + [Axum Example](https://github.com/SeaQL/sea-orm/tree/master/examples/axum_example) -//! + [Axum-GraphQL Example](https://github.com/SeaQL/sea-orm/tree/master/examples/axum-graphql_example) //! + [Poem Example](https://github.com/SeaQL/sea-orm/tree/master/examples/poem_example) +//! + [GraphQL Example](https://github.com/SeaQL/sea-orm/tree/master/examples/graphql_example) //! //! ## Features //!