Postgres Schema (namespace) + Drizzle

How do I specify a Postgres schema (as in the psql namespace feature) for drizzle.config.ts? A connection string with database?schema=blah hasn't worked for me.
4 Replies
Mert
Mert10mo ago
use pgSchema to define a schema variable, then use schema.table instead of pgTable
meow
meowOP10mo ago
How would I set the config for drizzle-kit?
Mert
Mert10mo ago
there should be a schemaFilter if you want to exclude stuff, otherwise defining in a schema file should be enough https://orm.drizzle.team/docs/schemas
meow
meowOP10mo ago
Things are mostly working out, thanks!
Want results from more Discord servers?
Add your server