b_patel
b_patel
DTDrizzle Team
Created by b_patel on 1/2/2024 in #help
Setup for multiple databases
@Angelelz thank you! This is exactly what I needed.
13 replies
DTDrizzle Team
Created by b_patel on 1/2/2024 in #help
Setup for multiple databases
How would I properly setup the config to support 2 dbs? All the examples show a default config so its not clear to me how 2 would be supported.
import type { Config as DrizzleConfig } from "drizzle-kit";

export default {
schema: [
"api/src/db/schema/app1.ts",
],
out: "api/app1/drizzle/migrations/",
driver: "pg",
dbCredentials: {
connectionString:
"postgresql://postgres:docker@localhost:5432",
},
} satisfies DrizzleConfig;
import type { Config as DrizzleConfig } from "drizzle-kit";

export default {
schema: [
"api/src/db/schema/app1.ts",
],
out: "api/app1/drizzle/migrations/",
driver: "pg",
dbCredentials: {
connectionString:
"postgresql://postgres:docker@localhost:5432",
},
} satisfies DrizzleConfig;
13 replies
DTDrizzle Team
Created by b_patel on 1/2/2024 in #help
Setup for multiple databases
We might have an analytics db that does some replication with AWS DMS in the future, but not likely right now
13 replies
DTDrizzle Team
Created by b_patel on 1/2/2024 in #help
Setup for multiple databases
Nope, no relationship
13 replies