drizzle-kit defineConfig no "pg" driver available.

There seems to be no type for "pg" in the driver field of defineConfig in drizzle-kit.
import { defineConfig } from "drizzle-kit"

export default defineConfig({
schema: "/src/db/schema.ts",
out: "/src/db/migrations",
driver: "pg", // does not exist
// the only ones that are an option are: "aws-data-api", "d1-http", "expo", "turso"
})
import { defineConfig } from "drizzle-kit"

export default defineConfig({
schema: "/src/db/schema.ts",
out: "/src/db/migrations",
driver: "pg", // does not exist
// the only ones that are an option are: "aws-data-api", "d1-http", "expo", "turso"
})
2 Replies
Lloyd
Lloyd3mo ago
I spent ages looking at this, you don't need to specify the driver in this case, if you just specify your
dbCredentials: {
host, user, password, etc. }
dbCredentials: {
host, user, password, etc. }
block it will connect using the postgres-js driver
xxxxx
xxxxx3mo ago
thank you
Want results from more Discord servers?
Add your server