Twiser
Twiser
DTDrizzle Team
Created by Twiser on 11/11/2023 in #help
How to retrieve database credentials from drizzle.config.ts
thanks for looking into it!
6 replies
DTDrizzle Team
Created by Twiser on 11/11/2023 in #help
How to retrieve database credentials from drizzle.config.ts
Thank you, I tried this but unfortunately it doesn't resolve in-time before defineConfig ends up running
(async () => {
const env = await getEnv();
})();

export default defineConfig({
schema: "./schema.ts",
driver: 'pg',
dbCredentials: {
connectionString: env,
},
verbose: true,
strict: true,
})
(async () => {
const env = await getEnv();
})();

export default defineConfig({
schema: "./schema.ts",
driver: 'pg',
dbCredentials: {
connectionString: env,
},
verbose: true,
strict: true,
})
6 replies
DTDrizzle Team
Created by Twiser on 11/6/2023 in #help
TypeScript complaining about using a spread operator in partial select query
Oh thank you so much, didn't know about this helper! This works now.
5 replies