Skip to main content

Module generate

Module generate 

Source
Expand description

drizzle generate: writes a migration folder from schema changes.

Structs§

GenerateOptions

Functions§

run
Runs drizzle generate: diffs the schema files against the newest snapshot.json in the migrations folder and writes <out>/<tag>/migration.sql plus snapshot.json.
write_migrations_js
Write a migrations.js bundle index at the root of the migrations output folder.