Unknown option schemaFilter for drizzle-kit introspect

The documentation https://orm.drizzle.team/kit-docs/commands#introspect--pull states that there is a schemaFilter option to specify the database schema parameter. I have installed the newest drizzle-kit:
drizzle-kit --version
drizzle-kit: v0.19.13
drizzle-orm: v0.28.5
drizzle-kit --version
drizzle-kit: v0.19.13
drizzle-orm: v0.28.5
Trying to use drizzle-kit to generate a schema fails:
drizzle-kit introspect:pg --out=migrations/ --connectionString='postgresql://postgres:postgres@localhost:54322/postgres' --driver=pg --schemaFilter=auth
drizzle-kit introspect:pg --out=migrations/ --connectionString='postgresql://postgres:postgres@localhost:54322/postgres' --driver=pg --schemaFilter=auth
with an error:
error: unknown option '--schemaFilter=auth'
error: unknown option '--schemaFilter=auth'
How to specify the database schema (here Postgresql) from which Typescript schema should be generated?
1 Reply
felixv
felixv13mo ago
@koty6998 I had the same issues and ended up creating another my-customer.config.ts and decleared there the schema filter and it worked with the --config=my-custom.config.ts
Want results from more Discord servers?
Add your server