MrMendez
Explore posts from serversDTDrizzle Team
•Created by rubberduckies on 7/10/2023 in #help
postges, auto-generated uuid as primary key
12 replies
DTDrizzle Team
•Created by MrMendez on 9/11/2023 in #help
dynamic table name
my use case is to have an endpoint where you pass a tableName and get all the rows in the table
also you can pass an array of fields and get those fields too
10 replies
DTDrizzle Team
•Created by MrMendez on 9/11/2023 in #help
dynamic table name
turns out that using the
works, but what would be the best way for dynamic queries?
10 replies
DTDrizzle Team
•Created by MrMendez on 9/7/2023 in #help
Migrate using Neon and Sveltekit
will update soon
15 replies
DTDrizzle Team
•Created by MrMendez on 9/7/2023 in #help
Migrate using Neon and Sveltekit
i kind of found out the problem
15 replies
DTDrizzle Team
•Created by MrMendez on 9/7/2023 in #help
Migrate using Neon and Sveltekit
never mind, yea same error, delete all the meta and sql file and tried generating them again too, still have the same error:
15 replies
DTDrizzle Team
•Created by MrMendez on 9/7/2023 in #help
Migrate using Neon and Sveltekit
wait
15 replies
DTDrizzle Team
•Created by MrMendez on 9/7/2023 in #help
Migrate using Neon and Sveltekit
nop 🥲
15 replies
DTDrizzle Team
•Created by MrMendez on 9/7/2023 in #help
Migrate using Neon and Sveltekit
also, the type error on db is this:
Error: Type Mismatch
The "NeonDatabase<Record<string, never>>" type is not compatible with "NeonDatabase<Record<string, unknown>>". The discrepancy is rooted in the compatibility of '$with(...).as' between these types.
Here are the details:
- The 'getSQL()' return types are incompatible between the versions of drizzle-orm you are using (0.28.5 and 0.28.6).
- The 'shouldInlineParams' property has different declarations in these versions.
- The Typescript compiler detected this as error 2345, indicating a type assignment issue.
Root Cause:
It seems like you are using two different versions of drizzle-orm library. The type declarations in version 0.28.5 don't match with those in version 0.28.6, leading to this conflict.
15 replies
DTDrizzle Team
•Created by MrMendez on 9/7/2023 in #help
Migrate using Neon and Sveltekit
nop, ./migrations is the right relative path, but either way if i use ./src/lib/migrations still does not work
15 replies
DTDrizzle Team
•Created by MrMendez on 9/7/2023 in #help
Migrate using Neon and Sveltekit
"migrate:gen": "drizzle-kit generate:pg --schema=./src/lib/migrations/schema.ts"
15 replies
DTDrizzle Team
•Created by MrMendez on 9/7/2023 in #help
Migrate using Neon and Sveltekit
yes
15 replies