sy
sy
DTDrizzle Team
Created by sy on 9/3/2023 in #help
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
}
1 replies