reaper
DTDrizzle Team
•Created by reaper on 3/19/2025 in #help
How do I seed my Cloudflare D1 db?
I have created a simple schema
and I have been successful in migrating both the local and prod dbs
I have also setup drizzle-seed (correctly I think)
How would I run the seed script against Cloudflare D1?
How would I run it against the local instance? (Its just a sqlite file inside
.wrangler
)
Is there a way to generate a SQL file from the seed script instead? I know I can run it against both local and prod with wrangler :: https://developers.cloudflare.com/d1/wrangler-commands/#d1-execute6 replies