Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Add capablity to accommodate read replica config #2

Merged
merged 1 commit into from Apr 20, 2017
Merged

Add capablity to accommodate read replica config #2

merged 1 commit into from Apr 20, 2017

Conversation

diorahman
Copy link

Config example:

const connection = {
  // TODO: get this from .env
  user: 'hooqapi',
  database: 'backstage',
  password: 'hooqapi-password1!',
  host: 'localhost',
  port: 5432,
  max: 10,
  idleTimeoutMillis: 1000,
}

const options = {
  client: 'pg',
  connection,
  readReplica: {
    // this should be the read replica connection settings
    connection: {
      user: 'hooqapi',
      database: 'backstage',
      password: 'hooqapi-password1!',
      host: 'localhost',
      port: 5432,
      max: 10,
      idleTimeoutMillis: 1000
    }
  }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant