Tomathy
Explore posts from serversPPrisma
•Created by Tomathy on 12/3/2024 in #help-and-questions
Migrating to v6 issues with optimize
Hello, I tried to migrate to v6 from v5, but when I tried to follow the npm commands suggested, this error came up
6 replies
PPrisma
•Created by Tomathy on 11/6/2024 in #help-and-questions
Unknown argument...Available options are marked with ?.
Hello,
I'm facing a problem while seeding my database. I have an implicit many-to-many relation table, and when creating one of the tables, I want to connect some existing rows from the other table into that one, like this:
The model for invoice:
I thought that maybe the reason for it was that connect didn't accept empty arrays, so I separated with the if clause. But i keep getting the error:
It also prints out the invoices array. Can anyone help me?
1 replies
PPrisma
•Created by Tomathy on 10/23/2024 in #help-and-questions
SSL connection to supabase
Hello, I'm developing an application where the stack includes Prisma as an ORM and the database is hosted by supabase. The app is still in development, and I'm unsure how to make the connection between the development environment and the database be SSL encrypted. That, and how to enforce it also on a production environment.
As a disclaimer, I'm using: Prisma + Sveltekit + Supabase. I've also tried to put sslmode=require on the database string, but it fails to establish a connection
18 replies
DTDrizzle Team
•Created by Tomathy on 9/2/2024 in #help
No overload matches this call
I'm sorry that I'm already the 4th person with this sort of post, but the other posts didn't really help me out. I'm having an issue where it's sayig a certain attribute isn't in the type generated, but I don't see why not, and when I run the code it does work
Here's the schema:
Here's the error:
No overload matches this call.
Overload 2 of 2, '(values: { name: string | SQL<unknown> | Placeholder<string, any>; nif: string | SQL<unknown> | Placeholder<string, any>; password: SQL<unknown> | Buffer | Placeholder<...>; ... 5 more ...; services?: number | ... 2 more ... | undefined; }[]): PgInsertBase<...>', gave the following error.
Object literal may only specify known properties, and 'name' does not exist in type '{ name: string | SQL<unknown> | Placeholder<string, any>; nif: string | SQL<unknown> | Placeholder<string, any>; password: SQL<unknown> | Buffer | Placeholder<...>; ... 5 more ...; services?: number | ... 2 more ... | undefined; }[]'.
12 replies