Sabin Adams
PPrisma
•Created by Sabin Adams on 2/24/2025 in #help-and-questions
Custom Migrations
What's the recommended way to customize migrations that aren't supported by Prisma Schema directly?
More specifically, if I wanted to add Partial Indexes, Collations, Computed fields, etc..., I recognize we'd likely need to update the generated migration file. That ends up defeating the purpose of Prisma Schema (a snapshot of your DB schema) as there is info not represented.
Are comments the only solution here or is there some (undocumented) way to develop custom annotations that affect the migration?
8 replies
PPrisma
•Created by Sabin Adams on 2/16/2025 in #help-and-questions
Prisma Pulse w/ Docker Postgres
What's the nicest way to get Pulse working with a local DB in docker? Ideally a situation where I wouldn't have to manually enable WAL, it would be set up when the container comes up.
5 replies
PPrisma
•Created by Sabin Adams on 9/18/2024 in #help-and-questions
Schema Visualizer
Has there been any thoughts about a schema visualizer in your PDP account? Something similar to Prismalizer but built right into your control plane?
I'd love a feature like that, especially if it would automatically consolidate split schemas.
(ignore the off-topic tags, there wasn't a relevant option)
3 replies
PPrisma
•Created by Sabin Adams on 8/14/2024 in #help-and-questions
Pulse Type
Is there a good way to get the type of a Prisma Client instance with Pulse before instantiating it?
For context, I have a class that will eventually have a member populated with a Pulse DB instance:
16 replies
PPrisma
•Created by Sabin Adams on 7/26/2024 in #help-and-questions
Log Transports
Is it possible to set up transports for Prisma Client logs?
Context: I want to push logs to Grafana Loki using its HTTP endpoint. Here's an example of Pino logger doing it:
https://www.npmjs.com/package/pino-loki
If it's not possible directly, is this something Client Extensions could do?
4 replies