© 2026 Hedgehog Software, LLC
// db/schema/index.ts const customSchema = pgSchema('custom') const foo = customSchema.table('foo', ...) // db/index.ts const drizzle = db(conn, { schema, logger: true }) // example/page.tsx db.query.foo.findMany(); // run, expected: select "id" from "custom"."foo" Query: select "id" from "foo"; PostgreSQLError: relation "foo" doesn't exist
db.query.custom.foo.findMany...