Comments (3)
I think this is similar to steebchen/prisma-client-go#482, where sqlite relative paths are not resolved correctly, and so the database file is being created and migrated in the root of the repo but at runtime a new un-migrated database file is being created in the directory above the repo, so you get this error. For now I'd recommend either moving the schema.prisma
file to the root of the repo (easier), or installing prisma-client-rust
and the cli from the master branch (I have an annoying fix that will be included in v0.4.0)
from prisma-client-rust.
This works, thank you very much!
from prisma-client-rust.
I have the same problem, as I need to use integration as the node I made a special script in my package.json to always copy the database to the root of the project and activate the prism folder in its default location.
I used CPX for this.
"scripts": {
"cargo:run": "cargo run",
"prisma:migrate": "DISABLE_ERD=true npx prisma migrate dev && cpx ./prisma/dev.db/ ./",
"prisma:generate": "npx prisma generate",
"prisma:docs": "npx prisma-docs-generator serve"
},
from prisma-client-rust.
Related Issues (20)
- 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
- A bug is occurring in the query to get only empty data "NULL".
- prisma generate report 'Error: (query-engine binary)' on Amazon Linux 2023
- Cargo prisma generate is broken on Tauri example HOT 2
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.