Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

No connector features enabled in sdk-example-app crate #465

Open
learner-long-life opened this issue Jul 26, 2024 · 0 comments
Open

No connector features enabled in sdk-example-app crate #465

learner-long-life opened this issue Jul 26, 2024 · 0 comments

Comments

@learner-long-life
Copy link

In a freshly cloned repo,
in the directory prisma-client-rust/crates/sdk/example/app

I generated a client

cargo prisma generate

and then tried to build with

cargo build

I received the following error:

error: No connector feature enabled. Please enable a connector feature ('mssql', 'mysql', 'postgresql', 'sqlite', or 'mongodb')
 --> crates/lib/src/lib.rs:8:1
  |
8 | compile_error!("No connector feature enabled. Please enable a connector feature ('mssql', 'mysql', 'postgresql', 'sqlite', or 'mongodb')...

The features from these database connectors are all uncommented in the Cargo.toml

[features]
default = []
rspc = ["dep:rspc", "specta"]
specta = ["dep:specta", "prisma-client-rust-generator-macros/specta"]
sqlite-create-many = ["psl/sqlite-create-many"]
migrations = [
  "schema-core",
  "dep:include_dir",
  "dep:tempfile",
  "tokio/fs",
  "dep:tracing",
]
mocking = ["tokio"]
# mutation-callbacks = []
mssql = ["schema-core/mssql", "request-handlers/mssql"]
mysql = ["schema-core/mysql", "request-handlers/mysql"]
postgresql = ["schema-core/postgresql", "request-handlers/postgresql"]
sqlite = ["schema-core/sqlite", "request-handlers/sqlite"]
mongodb = ["schema-core/mongodb", "request-handlers/mongodb"]

Any help on how to proceed is appreciated.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant