Skip to content

Commit

Permalink
update all examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Brendonovich committed Mar 25, 2023
1 parent 735d23c commit a077c8f
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 15 deletions.
67 changes: 61 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions examples/axum-graphql/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ async fn graphql_playground() -> impl IntoResponse {

#[tokio::main]
async fn main() {
#[cfg(debug_assertions)]
dotenv().ok();

let schema = build_schema().await;

let app = Router::new()
Expand Down
2 changes: 1 addition & 1 deletion examples/axum-rest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.1"
edition = "2021"

[dependencies]
prisma-client-rust = { path = "../..", default-features = false, features = ["migrations", "sqlite", "mocking"] }
prisma-client-rust = { path = "../..", default-features = false, features = ["migrations", "sqlite"] }
tokio = { version = "1.0", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
axum = "0.6"
3 changes: 1 addition & 2 deletions integration-tests/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[alias]
prisma = "run -p prisma-cli --features specta --"

prisma = "run -p prisma-cli --features specta,mocking --"
5 changes: 2 additions & 3 deletions prisma-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ version = "0.0.0"
edition = "2021"

[features]
mocking = ["prisma-client-rust-cli/mocking"]
specta = ["prisma-client-rust-cli/specta"]

[dependencies]
prisma-client-rust-cli = { features = [
"sqlite-create-many",
"sqlite",
"migrations",
# "mutation-callbacks",
"mocking"
"migrations"
], default_features = false, path = "../cli" }

0 comments on commit a077c8f

Please sign in to comment.