Skip to content

Commit

Permalink
feat(driver-adapters): rename preview feature jsConnectors -> `driv…
Browse files Browse the repository at this point in the history
…erAdapters` (#4201)

* Revert "feat(driver-adapters): revert preview feature name change"

This reverts commit 90dc3ec.

* feat(driver-adapters): update preview feature in schemas
  • Loading branch information
jkomyno authored Sep 5, 2023
1 parent cc0b3ec commit 3e5d350
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions psl/psl-core/src/common/preview_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ features!(
NamedConstraints,
NApi,
NativeTypes,
JsConnectors,
DriverAdapters,
OrderByAggregateGroup,
OrderByNulls,
OrderByRelation,
Expand Down Expand Up @@ -124,7 +124,7 @@ pub const ALL_PREVIEW_FEATURES: FeatureMap = FeatureMap {
| UncheckedScalarInputs
}),
hidden: enumflags2::make_bitflags!(PreviewFeature::{
JsConnectors
DriverAdapters
}),
};

Expand Down
5 changes: 2 additions & 3 deletions query-engine/query-engine-node-api/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,10 @@ impl QueryEngine {

let mut connector_mode = ConnectorMode::Rust;

// TODO: https://github.com/prisma/team-orm/issues/340
if !preview_features.contains(PreviewFeature::JsConnectors) {
if !preview_features.contains(PreviewFeature::DriverAdapters) {
tracing::info!(
"Please enable the {} preview feature to use driver adapters.",
PreviewFeature::JsConnectors
PreviewFeature::DriverAdapters
);
} else {
#[cfg(feature = "driver-adapters")]
Expand Down

0 comments on commit 3e5d350

Please sign in to comment.