Axinom Mosaic Libraries
    Preparing search index...
    • Get the basic configuration definitions for Database specific settings

      Parameters

      • variables: Dict<string | undefined> = process.env

        process.env variables or custom provided values

      • Optionallogger: LoggerFn

      Returns {
          dbGqlRole: () => string;
          dbLogin: () => string;
          dbLoginConnectionString: () => string;
          dbLoginPassword: () => string;
          dbName: () => string;
          dbOwner: () => string;
          dbOwnerConnectionString: () => string;
          dbOwnerPassword: () => string;
          dbOwnerReplicationConnectionString: () => string;
          dbShadowConnectionString: () => string;
          pgHost: () => string;
          pgPoolMaxConnections: () => number;
          pgPort: () => number;
          pgReplicationPort: () => number;
          pgRoot: () => string | undefined;
          pgRootConnectionString: () => string;
          pgRootPassword: () => string | undefined;
          pgSSLMode: () => | "disable"
          | "allow"
          | "prefer"
          | "require"
          | "verify-ca"
          | "verify-full"
          | "no-verify";
          pgUserSuffix: () => string;
      }

      The following configuration values are included:

      pgHost // e.g. POSTGRESQL_HOST=localhost
      pgPort // e.g. POSTGRESQL_PORT=5432
      pgUserSuffix // e.g. POSTGRESQL_USER_SUFFIX=@azure-suffix
      pgSSLMode // e.g. PGSSLMODE=require
      pgRoot // e.g. POSTGRESQL_ROOT=postgres
      pgRootPassword // e.g. POSTGRESQL_ROOT_PASSWORD=C~iZ[r0U-]wYdHXm>T
      dbName // e.g. DATABASE_NAME=my_business_service
      dbOwner // e.g. DATABASE_OWNER=my_business_owner
      dbOwnerPassword // e.g. DATABASE_OWNER_PASSWORD=x4HKTiFEY]iDov!+a
      dbLogin // e.g. DATABASE_LOGIN=my_business_login
      dbLoginPassword // e.g. DATABASE_LOGIN_PASSWORD=Cl1sJh56n'>caX@7[,
      dbGqlRole // e.g. DATABASE_GQL_ROLE=my_business_gql_role
      pgPoolMaxConnections // e.g. PG_POOL_MAX_CONNECTIONS=25
      pgRootConnectionString // calculated from the above settings
      dbOwnerConnectionString // calculated from the above settings
      dbOwnerReplicationConnectionString // calculated from the above settings
      dbShadowConnectionString // calculated from the above settings
      dbLoginConnectionString // calculated from the above settings
      • dbGqlRole: () => string
        DATABASE_GQL_ROLE=my_business_gql_role
        
      • dbLogin: () => string
        DATABASE_LOGIN=my_business_login
        
      • dbLoginConnectionString: () => string

        calculated from env variables: POSTGRESQL_* and DATABASE_*

      • dbLoginPassword: () => string
        DATABASE_LOGIN_PASSWORD=Cl1sJh56n'>caX@7[,
        
      • dbName: () => string
        DATABASE_NAME=my_business_service
        
      • dbOwner: () => string
        DATABASE_OWNER=my_business_owner
        
      • dbOwnerConnectionString: () => string

        calculated from env variables: POSTGRESQL_* and DATABASE_*

      • dbOwnerPassword: () => string
        DATABASE_OWNER_PASSWORD=x4HKTiFEY]iDov!+a
        
      • dbOwnerReplicationConnectionString: () => string

        calculated from env variables: POSTGRESQL_* and DATABASE_* using POSTGRESQL_REPLICATION_PORT

      • dbShadowConnectionString: () => string

        calculated from env variables: POSTGRESQL_* and DATABASE_*

      • pgHost: () => string
        POSTGRESQL_HOST=localhost
        
      • pgPoolMaxConnections: () => number
        PG_POOL_MAX_CONNECTIONS=25
        
      • pgPort: () => number
        POSTGRESQL_PORT=5432
        
      • pgReplicationPort: () => number
        POSTGRESQL_PORT=5432
        
      • pgRoot: () => string | undefined
        POSTGRESQL_ROOT=postgres
        
      • pgRootConnectionString: () => string

        calculated from env variables: POSTGRESQL_* and DATABASE_*

      • pgRootPassword: () => string | undefined
        POSTGRESQL_ROOT_PASSWORD=C~iZ[r0U-]wYdHXm>T
        
      • pgSSLMode: () => | "disable"
        | "allow"
        | "prefer"
        | "require"
        | "verify-ca"
        | "verify-full"
        | "no-verify"
        PGSSLMODE=require
        
      • pgUserSuffix: () => string
        POSTGRESQL_USER_SUFFIX=@azure-suffix