switz
switz
Explore posts from servers
PPrisma
Created by switz on 9/21/2024 in #help-and-questions
Cant run prisma generate at build time
My build env does not have access to my database. Can I run prisma generate before deploying or at runtime?
4 replies
PPrisma
Created by switz on 9/16/2024 in #help-and-questions
nested raw query errors
WHERE
"postId" = ${postId} AND
${rootCommentId ? `"id" = ${rootCommentId}` : '"parentCommentId" IS NULL'}
WHERE
"postId" = ${postId} AND
${rootCommentId ? `"id" = ${rootCommentId}` : '"parentCommentId" IS NULL'}
I get
Message: `ERROR: argument of AND must be type boolean, not type text
Message: `ERROR: argument of AND must be type boolean, not type text
Do I need to escape this further?
11 replies
PPrisma
Created by switz on 9/16/2024 in #help-and-questions
caprover can't connect via prisma
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "everpresent", schema "public" at "srv-captain--everpresent-postgres"

Error: P1001: Can't reach database server at `srv-captain--everpresent-postgres`:`5432`

Please make sure your database server is running at `srv-captain--everpresent-postgres`:`5432`.
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "everpresent", schema "public" at "srv-captain--everpresent-postgres"

Error: P1001: Can't reach database server at `srv-captain--everpresent-postgres`:`5432`

Please make sure your database server is running at `srv-captain--everpresent-postgres`:`5432`.
I've verified this database exists and works at the correct hostname
2 replies