rcamf
DTDrizzle Team
•Created by rcamf on 1/17/2025 in #help
Grant Privileges to Role
I created roles in my project using the
pgRole()
in order to enable RLS on my database. After running the migration my user has no privileges on my tables and cannot access them. How can I grant all privileges to my role?1 replies
DTDrizzle Team
•Created by rcamf on 1/10/2025 in #help
Enum in Unique Constraint throws error.
Environment: drizzle-orm "0.36.0"
I have one file that has an enum:
In another file I am importing that enum and using it for a column in my table with a unique check over multiple columns:
I get the following error message when executing:
When removing the constraint or moving the enum to the same file (which is not possible since I need it in multiple places) the error disappears. Does anyone have any clue why this happens?
2 replies
DTDrizzle Team
•Created by rcamf on 2/15/2024 in #help
Type of relations when using with is not correctly set
I have two schemas:
They are in a one-to-one relation with the relations defined:
However when I run following query the setup property on a job is not properly typed:
Instead it has following type:
I tried following the other posts to solve this in the discord and also created the
IncludeRelations
type that was suggested in other similar posts, but nothing seems to be working for me.4 replies