Comments (3)
That is generally a thing the Rust Client (which is modelled after how the Go Client works) should be doing. Seems for some reason it does not do that for you, leading to the suboptimal Prisma CLI included code for downloading to be triggered.
We also want to fix that /snapshot
bug internally in the packaged CLI, but that is not a priority right now.
from prisma-client-rust.
Does the Client set either PRISMA_QUERY_ENGINE_LIBRARY
or PRISMA_MIGRATION_ENGINE_BINARY
pointing to a file that contains the appropriate file prisma-fmt-debian-openssl-1.1.x
? That should skip the download logic in the CLI.
from prisma-client-rust.
If I use the following commands everything works. Thanks @janpio.
# Permission issue workaround -> Discussed below
sudo mkdir /snapshot
sudo chown -R $(id -u):$(id -g) /snapshot
# First CLI execution downloads the correct binary and throws the error. Send execution works correctly.
prisma-client-rust generate
export PRISMA_QUERY_ENGINE_LIBRARY=/snapshot/node_modules/prisma/node_modules/@prisma/engines/
prisma-client-rust generate
To fix this would it make sense for the prisma-client-rust
CLI to determine if this file is needed, download it and set the environment variables or should a different version of the Prisma CLI be downloaded which includes the expected file.
It's also worth noting that the Prisma CLI is downloading the binaries to the /snapshot
directory on my system. Writing files here is both undesired and also introduces permission issues for most Linux setups. Although this won't be an issue if prisma-client-rust
is in charge of downloading the file.
from prisma-client-rust.
Related Issues (20)
- Abstracting over fetching relations
- Build for Docker HOT 2
- Support --generator option to generate cmd HOT 2
- Future incompatibility Report HOT 1
- Feat: Code Generate Split Demo
- connection-string: code will be rejected by a future version of Rust
- Upgrade to Prisma 5.9 to improve join performance HOT 2
- MySQL Bad Handshake when using sslcert
- Relation-Count (equivalent to _count) HOT 2
- Cargo check causes entire project to rebuild when run but only when Prisma crates are dependencies HOT 1
- Add optional utoipa to generated prisma macro HOT 1
- Unique constraints with composite type fields HOT 3
- Feedback for โMockingโ HOT 1
- Proper way to cache "prisma generate" command HOT 2
- alpine prisma client generate error
- Use cargo-binstall for cli HOT 9
- Creation of many-to-many relationship when inserting a new record HOT 2
- How to exclude 1 field when querying? HOT 1
- How to generate output that split into many small files? HOT 1
- Crate.io package Yanked HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prisma-client-rust.