philbookst
Explore posts from serversDTDrizzle Team
•Created by philbookst on 12/20/2023 in #help
push:sqlite error _old_push table with turso
is there any known workaround for this issue:
https://github.com/drizzle-team/drizzle-orm/issues/1313
adding a column to a table and calling db:push gives a 500 error due to a _oldpushtablename being created causing some issues
6 replies
DTDrizzle Team
•Created by philbookst on 6/7/2023 in #help
Query/select statement of column via sql`` for extras field
is it possible to make a normal select to another table inside a extras object in a relational query?
i'm trying to do something like this:
i'm getting a
syntax error at position 2270 near 'SELECT'
is this possible or should i just add the necessary relation and query it on the same level as the user object?2 replies
DTDrizzle Team
•Created by philbookst on 6/2/2023 in #help
Problem with infering json type in zod schema
When using the following table/schema:
Am I doing something wrong? How can I pick the value key with correct types from the schema?
3 replies
DTDrizzle Team
•Created by philbookst on 5/30/2023 in #help
Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2020
Hey I just upgraded to the v^0.26.2 and I get the following error:
this breaks my local development and (sveltekit) build as well
2 replies
DTDrizzle Team
•Created by philbookst on 5/11/2023 in #help
uuid missing in drizzle-orm/mysql-core?
There is a uuid method in the drizzle-orm/pg-core package, but none in the mysql-core package. What is the reason behind this? What should we use instead to generate uuids automatically?
12 replies
DTDrizzle Team
•Created by philbookst on 5/11/2023 in #help
DatabaseError: Duplicate column name 'id'
hey guys, i have a problem in my query but cannot figure out what is causing it.
any idea what's going on?
5 replies
DTDrizzle Team
•Created by philbookst on 5/11/2023 in #help
Need help transform a nested prisma query to drizzle
Hey I'm trying to translate the following prisma query to drizzle:
closest i've come to is this:
but when trying to move the settings object into the course object as it is in the prisma query I get an error
Object literal may only specify known properties, and 'hostAlias' does not exist in type 'SQL<unknown> | Aliased<unknown> | AnyMySqlColumn<{}>'
is there any way to get the same result with drizzle? thank you very much for your help! drizzle is awesome!4 replies