DT
Drizzle Team15mo ago
sy

Why does JSON configuration for drizzle-kit not require a dbCredentials?

Hello, according to https://orm.drizzle.team/kit-docs/overview#configuration. For both JS & TS of the configuration we are allowed to pass in a dbCredentials
export default {
schema: "./schema.ts",
driver: 'pg',
dbCredentials: {
connectionString: process.env.DB_URL,
}
} satisfies Config;
export default {
schema: "./schema.ts",
driver: 'pg',
dbCredentials: {
connectionString: process.env.DB_URL,
}
} satisfies Config;
However for the JSON version there isn't a need for it
{
"out": "./migrations-folder",
"schema": "./src/db",
"breakpoints": false
}
{
"out": "./migrations-folder",
"schema": "./src/db",
"breakpoints": false
}
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server