PostgreSQL Database Adapter for Sails

Other topics

Install

You can install the postgreSQL adapter via NPM.

npm install sails-postgresql

Configuration

You can configure the database settings in config/connections.js.

Here's an example:

postgresql: {
  database: 'databaseName',
  host: 'localhost',
  user: 'root',
  password: '',
  port: 5432,
  poolSize: 10,
  ssl: false
};

Alternatively, you can supply the connection information in URL format:

postgresql: {
  url: 'postgres://username:password@hostname:port/database',
  ssl: false
};

Contributors

Topic Id: 4676

Example Ids: 16439,16440

This site is not affiliated with any of the contributors.