mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-04 10:05:53 +02:00
simplify installer and remove parsing from read config
This commit is contained in:
parent
9f38ad9b4d
commit
ead5df0a8c
9 changed files with 51 additions and 70 deletions
|
@ -5,6 +5,12 @@ import { withReplicas } from "drizzle-orm/pg-core";
|
|||
function createDb() {
|
||||
const config = readConfigFile();
|
||||
|
||||
if (!config.postgres) {
|
||||
throw new Error(
|
||||
"Postgres configuration is missing in the configuration file."
|
||||
);
|
||||
}
|
||||
|
||||
const connectionString = config.postgres?.connection_string;
|
||||
const replicaConnections = config.postgres?.replicas || [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue