2024-03-11 04:29:05 +01:00
|
|
|
import { ConfigManager } from "config-manager";
|
2023-11-28 22:14:31 +01:00
|
|
|
|
2024-03-11 04:29:05 +01:00
|
|
|
// Proxies all `bunx prisma` commands with an environment variable
|
|
|
|
|
const config = await new ConfigManager({}).getConfig();
|
2023-11-28 22:14:31 +01:00
|
|
|
|
2023-12-06 23:10:22 +01:00
|
|
|
process.stdout.write(
|
2024-03-04 02:27:08 +01:00
|
|
|
`postgresql://${config.database.username}:${config.database.password}@${config.database.host}:${config.database.port}/${config.database.database}\n`
|
2023-12-06 23:10:22 +01:00
|
|
|
);
|
2024-03-04 02:27:08 +01:00
|
|
|
|
|
|
|
|
// Ends
|
|
|
|
|
process.exit(0);
|