Drizzle ORM
pgmold supports loading schemas from Drizzle ORM config files using the drizzle: prefix.
# Use Drizzle schema as sourcepgmold plan \ --schema drizzle:drizzle.config.ts \ --database db:postgres://localhost/mydbpgmold runs drizzle-kit export internally to extract the SQL DDL from your Drizzle config.
Mixed sources
Section titled “Mixed sources”Combine SQL files and Drizzle schemas:
pgmold plan \ --schema sql:base.sql \ --schema drizzle:drizzle.config.ts \ --database db:postgres://localhost/mydbThis merges both sources into a single desired schema before diffing against the database.