drizzle-kit introspect:pg Invalid input Only "pg" is available options for "--driver"
When attempting to introspect a neon pg db, I get a very cryptic message.
npx drizzle-kit introspect:pg --connectionString=postgres://gbd:[email protected]/neondb
drizzle-kit: v0.19.9 drizzle-orm: v0.27.2 Invalid input Only "pg" is available options for "--driver"
drizzle-kit: v0.19.9 drizzle-orm: v0.27.2 Invalid input Only "pg" is available options for "--driver"
4 Replies
You need add driver and dbCredentials options to drizzle.config.ts
getting this too even though I have my drizzle.config.ts set
I was having the exact same issue. I managed to solve it by using credentials instead of the connection string:
just add --driver: pg. It's a bug in docs.