Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: engine type implementation (will replace node api preview feature) #8437

Merged
merged 36 commits into from Aug 11, 2021

Conversation

williamluke4
Copy link
Contributor

@williamluke4 williamluke4 commented Jul 26, 2021

Both the CLI and Client are still by default using the binary but this allows for the change over to be much easier.

Escape Hatches

Client

ENV OVERRIDE

PRISMA_CLIENT_ENGINE_TYPE="library" | "binary"

Schema

generator client {
	provider    = "prisma-client-js"
	engineType  = "binary" | "library" 
}

CLI

ENV OVERRIDE

PRISMA_CLI_QUERY_ENGINE_TYPE="binary" | "library" 

@williamluke4 williamluke4 force-pushed the integration/enabling-node-api branch 6 times, most recently from 1ac21c1 to a46af61 Compare August 2, 2021 16:12
@williamluke4 williamluke4 force-pushed the integration/enabling-node-api branch 2 times, most recently from f76c172 to f8e9d93 Compare August 5, 2021 08:49
packages/cli/src/Version.ts Outdated Show resolved Hide resolved
scripts/ci/publish.ts Outdated Show resolved Hide resolved
Copy link
Member

@Jolg42 Jolg42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good (see comments)

Question: Is this validated by VSCode / engine validation?
engineType = "binary" | "library"

@janpio janpio changed the title feat(client): enable node-api by default feat: engine type implementation (replaces node api preview feature) Aug 6, 2021
@janpio janpio changed the title feat: engine type implementation (replaces node api preview feature) feat: engine type implementation (will replace node api preview feature) Aug 6, 2021
.buildkite/test/run.sh Outdated Show resolved Hide resolved
.github/workflows/test.yml Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants