Nurul
Nurul
PPrisma
Created by pawel-123 on 11/18/2024 in #help-and-questions
Optimize not showing recommendations for a finished recording (+ feature requests)
Responded in DMs 👍
10 replies
PPrisma
Created by om3r on 12/10/2024 in #help-and-questions
multi language setup in prisma
Other option would be to use a JSON column and store all translations in that column. That approach comes with different overheads though 😄
6 replies
PPrisma
Created by Anas Badran on 12/11/2024 in #help-and-questions
Fix a query
Hmm, do you get the same issue if you use every?
23 replies
PPrisma
Created by wanjas on 12/11/2024 in #help-and-questions
Postgresql 17
The PR is merged 👍
8 replies
PPrisma
Created by Josef Henryson on 12/13/2024 in #help-and-questions
Performance problem
I would recommend using tracing to see where exactly is the time spent. This would allow troubleshooting the overhead:https://www.prisma.io/docs/orm/prisma-client/observability-and-logging/opentelemetry-tracing
8 replies
PPrisma
Created by PingZing on 12/17/2024 in #help-and-questions
Declaring a PrismaClient with conditional logging
I marked it as solved 😄
7 replies
PPrisma
Created by PingZing on 12/17/2024 in #help-and-questions
Declaring a PrismaClient with conditional logging
I am glad to see that AI was able to help in this case 🙂 I agree, you can specify all the possible logging events: 'query' | 'info' | 'warn' | 'error' and then can select which you would like to subscribe to at run time
7 replies
PPrisma
Created by aa55h on 12/17/2024 in #help-and-questions
How to correctly deploy prisma into production?
I am glad to hear that! 🙂
5 replies
PPrisma
Created by aa55h on 12/17/2024 in #help-and-questions
How to correctly deploy prisma into production?
Hello 👋 What variables have you defined in your .env.production file? Are all these variables defined?
DATABASE_URL=your_db_url
PG_USER=your_user
PG_PASS=your_password
DATABASE_URL=your_db_url
PG_USER=your_user
PG_PASS=your_password
Could you try this docker-compose.yml?
version: '3.9'
services:
app:
build:
context: .
args:
- DATABASE_URL=${DATABASE_URL}
container_name: RiskRealm
environment:
- DATABASE_URL=${DATABASE_URL}
env_file:
- .env.production
depends_on:
- db
ports:
- "3000:3000"

db:
image: postgres:16
environment:
- POSTGRES_USER=${PG_USER}
- POSTGRES_PASSWORD=${PG_PASS}
- POSTGRES_DB=riskrealm
volumes:
- postgres-data:/var/lib/postgresql/data

volumes:
postgres-data:
version: '3.9'
services:
app:
build:
context: .
args:
- DATABASE_URL=${DATABASE_URL}
container_name: RiskRealm
environment:
- DATABASE_URL=${DATABASE_URL}
env_file:
- .env.production
depends_on:
- db
ports:
- "3000:3000"

db:
image: postgres:16
environment:
- POSTGRES_USER=${PG_USER}
- POSTGRES_PASSWORD=${PG_PASS}
- POSTGRES_DB=riskrealm
volumes:
- postgres-data:/var/lib/postgresql/data

volumes:
postgres-data:
Also, here is a reference of adding docker with Prisma in a testing guide that we wrote: https://www.prisma.io/docs/orm/prisma-client/testing/integration-testing#add-docker-to-your-project
5 replies
PPrisma
Created by orionvala on 12/16/2024 in #help-and-questions
Issues with shared library libssl.so.1.1
Did you try running this command? The linked GitHub Issue has reported the same error as you have shared: Details: Error loading shared library libssl.so.1.1: No such file or directory and running the command fixed the issue for a few users.
12 replies
PPrisma
Created by Rev on 12/14/2024 in #help-and-questions
Prisma using repository pattern
This is great! Thank you for sharing your use case and the way you are implementing it 🙌
6 replies
PPrisma
Created by misimilen on 12/14/2024 in #help-and-questions
ERROR: could not determine data type of parameter $5
Got it! Thanks for sharing! So, once the string was passed as empty, everything worked as expected, right?
4 replies
PPrisma
Created by sid on 12/16/2024 in #help-and-questions
Studio is not working with multifile schemas
Could you try running npx prisma db push before running npx prisma studio and check if you still get the same error?
10 replies
PPrisma
Created by sid on 12/16/2024 in #help-and-questions
Studio is not working with multifile schemas
No description
10 replies
PPrisma
Created by sid on 12/16/2024 in #help-and-questions
Studio is not working with multifile schemas
Did you run npx prisma db push or npx prisma migrate dev?
10 replies
PPrisma
Created by sid on 12/16/2024 in #help-and-questions
Studio is not working with multifile schemas
I tried it on 6.0.1 and it still works
10 replies
PPrisma
Created by sid on 12/16/2024 in #help-and-questions
Studio is not working with multifile schemas
No description
10 replies
PPrisma
Created by sid on 12/16/2024 in #help-and-questions
Studio is not working with multifile schemas
Hello @sid 👋 What is your prisma version? I just tried using Prisma studio with prismaSchemaFolder in a sqlite database and it worked as expected for me. This was my schema file
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client-js"
previewFeatures = ["prismaSchemaFolder"]
}

datasource db {
provider = "sqlite"
url = "file:./dev.db"
}
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client-js"
previewFeatures = ["prismaSchemaFolder"]
}

datasource db {
provider = "sqlite"
url = "file:./dev.db"
}
And this was my user.prisma file
model User {
id Int @id @default(autoincrement())
name String
email String
}
model User {
id Int @id @default(autoincrement())
name String
email String
}
10 replies
PPrisma
Created by HEALER on 12/15/2024 in #help-and-questions
Error @prisma/client did not initialize yet. Please run "prisma generate" on gitlab-ci.yml
I am glad to hear that! 🙂
5 replies
PPrisma
Created by Rev on 12/14/2024 in #help-and-questions
Prisma using repository pattern
Hey @Rev 👋 Thank you for starting this post. You can definitely consider using Prisma with a repository pattern. Do you intend to use this in a Nest.js application? What is your use case? This topic has been discussed before as well, did you had a chance to look at these discussions? https://github.com/prisma/prisma/discussions/3929 https://github.com/prisma/prisma/issues/5273 Here is an example that might be useful as well: https://github.com/LaunchWare/prisma-generator-vault
6 replies