brobbot-pg-brain

3.0.2 • Public • Published

brobbot-pg-brain

A Postgres-backed brain for brobbot.

Requires Postgres 9.4 or higher.

Usage

In your brobbot-instance:

npm install --save brobbot-pg-brain
./index.sh -b pg

Configuration

URL

Use one of the following environment variables to set the Postgres URL:

  • HEROKU_POSTGRESQL_*_URL
  • DATABASE_URL
  • POSTGRESQL_URL
HEROKU_POSTGRESQL_BLUE_URL=postgres://user:password@localhost/brobbot ./index.sh -b pg

Table name

Set BROBBOT_PG_TABLE_NAME to change the default table name ('brobbot').

BROBBOT_PG_TABLE_NAME=robot ./index.sh -b pg

Data key prefix

Set BROBBOT_PG_DATA_PREFIX to change the default key prefix ('data:').

BROBBOT_PG_DATA_PREFIX=brobbot-data: ./index.sh -b pg

Package Sidebar

Install

npm i brobbot-pg-brain

Weekly Downloads

1

Version

3.0.2

License

MIT

Last publish

Collaborators

  • b3nj4m