© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•2y ago
Max Forbang

Outputting Drizzle commands to a .sql file?

Is there a way output SQL to a file?

Instead of doing a full-blown
generate
generate
for a seed or migration script, I just want to insert some values one time (but I want to look it over in a .sql file as opposed to directly modifying my database).

Is there a way to do a dry run where we write our db.insert() statements and pipe the output to a SQL file?
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

drizzle-kit push:pg and sql commands
Drizzle TeamDTDrizzle Team / help
2y ago
drizzle-kit generate not generating sql file anymore?
Drizzle TeamDTDrizzle Team / help
13mo ago
How to use drizzle as a sql builder?
Drizzle TeamDTDrizzle Team / help
3y ago
Error with drizzle (sql)
Drizzle TeamDTDrizzle Team / help
2y ago