PGT
DTDrizzle Team
•Created by PGT on 12/6/2023 in #help
drizzle-kit not detecting tsconfig and getting path alias '~/'
i guess for the schema file, i can use relative paths, feels cleaner
the rest of the app is already working with absolute paths, so should be just the one file
10 replies
DTDrizzle Team
•Created by PGT on 12/6/2023 in #help
drizzle-kit not detecting tsconfig and getting path alias '~/'
oh so basically just use the
--project
flag?10 replies
DTDrizzle Team
•Created by PGT on 12/6/2023 in #help
drizzle-kit not detecting tsconfig and getting path alias '~/'
basically it can't detect the
types
file: Error: Cannot find module '~/types'
10 replies
DTDrizzle Team
•Created by PGT on 12/6/2023 in #help
drizzle-kit not detecting tsconfig and getting path alias '~/'
10 replies
DTDrizzle Team
•Created by PGT on 12/6/2023 in #help
drizzle-kit not detecting tsconfig and getting path alias '~/'
one sec let me get the error
10 replies
DTDrizzle Team
•Created by PGT on 12/6/2023 in #help
drizzle-kit not detecting tsconfig and getting path alias '~/'
oh my god I forgot the most important piece of information lol
10 replies
DTDrizzle Team
•Created by PGT on 11/17/2023 in #help
varchar but cast to typescript enum?
@Angelelz looks like this is what i need, will try it out, thanks!
4 replies
DTDrizzle Team
•Created by PGT on 9/29/2023 in #help
update where multiple conditions
still gives me the
Type 'boolean' is not assignable to type 'SQLWrapper'
type error abovee27 replies
DTDrizzle Team
•Created by PGT on 9/29/2023 in #help
update where multiple conditions
actually do you mean I have to explicitly define an object with the col names i'll update?
like this?
27 replies
DTDrizzle Team
•Created by PGT on 9/29/2023 in #help
update where multiple conditions
even with your last snipppet above, i get have the type error:
Type 'boolean' is not assignable to type 'SQLWrapper'
27 replies
DTDrizzle Team
•Created by PGT on 9/29/2023 in #help
update where multiple conditions
yeah, it does, i just get the type error
27 replies
DTDrizzle Team
•Created by PGT on 9/29/2023 in #help
update where multiple conditions
yeah, I'm using it something like this:
which should be defined cols of ProjectRenderTable
27 replies
DTDrizzle Team
•Created by PGT on 9/29/2023 in #help
update where multiple conditions
ideally i want to use import
update
and invoke it with different conditions so i'm thinking it makes sense here
don't mind changing it elsewhere though27 replies
DTDrizzle Team
•Created by PGT on 9/29/2023 in #help
update where multiple conditions
only tried to explicitly define it in the signature, so something like
27 replies
DTDrizzle Team
•Created by PGT on 9/29/2023 in #help
update where multiple conditions
i've also tried
eq(ProjectRenderTable[key as keyof typeof ProjectRenderTable], value)
, somewhat of a different error
27 replies
DTDrizzle Team
•Created by PGT on 9/29/2023 in #help
update where multiple conditions
i've tried a few different types, still same error
27 replies
DTDrizzle Team
•Created by PGT on 9/29/2023 in #help
update where multiple conditions
should be
Partial<NewProjectRender>
i'm using it to find specific rows to update27 replies
DTDrizzle Team
•Created by PGT on 9/29/2023 in #help
update where multiple conditions
ProjectRenderTable
is the pgTable definition from the schema
27 replies
DTDrizzle Team
•Created by PGT on 9/29/2023 in #help
update where multiple conditions
tried a few variations of the
key as keyof...
with different types without success
also tried to mess with the conditions
type a bit27 replies