koty6998
koty6998
DTDrizzle Team
Created by koty6998 on 8/25/2023 in #help
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?
2 replies