David L. Bowman
DTDrizzle Team
•Created by David L. Bowman on 1/22/2025 in #help
visualizing schemas and relationships
is there good software i can use w/ drizzle orm which helps me visualize my schemas and relationships?
1 replies
DTDrizzle Team
•Created by David L. Bowman on 12/22/2024 in #help
What's the best practice for selecting an item only if a nullable field is not-null?
In this case, I have a
type Patient
which has a nullable field called stripeCustomerId
. I create the patient earlier, and when I collect customer information, I add to it.
Although, sometimes, I want to getPatient
but I want it to throw an error if stripeCustomerId
or another similar field is missing. I'd also like to handle errors in my getPatient
function, so I don't have to handle errors everytime I call it.
I created this, but I'm wondering if there's a better way. I'm still a novice.
1 replies
DTDrizzle Team
•Created by David L. Bowman on 11/1/2024 in #help
Setting up drizzle.config.ts for AWS
For the life of me, I cannot figure this out.
I'm 100% confident all my credentials are correct.
I get this in console.
10 replies
DTDrizzle Team
•Created by David L. Bowman on 10/31/2024 in #help
Help Setting up Driver w/ AWS RDS

5 replies
DTDrizzle Team
•Created by David L. Bowman on 8/29/2024 in #help
`id` type is `undefined` when using `serial("id").primaryKey()`

7 replies
DTDrizzle Team
•Created by David L. Bowman on 8/26/2024 in #help
Formatting date_of_birth as MM-DD-YYYY
What's the best way of doing this?
date_of_birth: varchar("date_of_birth", { length: 10 }).notNull()
That's what I have so far, but I need it to be MM-DD-YYYY. It needs to be this way because of the API I need to sync with.
1 replies
DTDrizzle Team
•Created by David L. Bowman on 5/6/2024 in #help
Changing `id` type from serial to uuid, causing error.
I'm sorry, I'm new to Drizzle, but I've read through the documentation and discord and cannot find a solution to my problem.
I'm using Next.js 14, Postgresql through Vercel.
When I first started, I built a test
UsersTable
but now I want to change the id
from a serial
to a uuid
. Everytime I try to generate:pg
it works, but push:pg
fails, giving the following error:
Could you please tell me how I'm supposed to update my table?
82 replies