0.50.0 • Published 7 years ago

waterline-postgresql v0.50.0

Weekly downloads
53
License
MIT
Repository
github
Last release
7 years ago

PostgreSQL Waterline Adapter

NPM version Build status Dependency Status Code Climate

A Waterline adapter for PostgreSQL, with PostGIS support.

This package was last updated in 2015. For the most up-to-date information and tools related to PostgreSQL and Waterline adapters in Sails, visit the official Sails website or ask for help.

Features

  • 100% re-write of the original sails-postgresql adapter in ES6. And way faster.
  • Uses knex.js for query building and connection pooling
  • PostGIS 2.1+ Support

Compatibility

  • Waterline v0.11 and later
  • PostgreSQL 9.4 and later

Install

$ npm install waterline-postgresql --save

Configuration

config/connections.js

module.exports.connections = {
  // ...
  postgresdb: {
    /**
     * This 'connection' object could also be a connection string
     * e.g. 'postgresql://user:password@localhost:5432/databaseName?ssl=false'
     */
    connection: {
      database: 'databaseName',
      host: 'localhost',
      user: 'user',
      password: 'password',
      port: 5432,
      ssl: false
    },
    /**
     * Pool configuration
     */
    pool: {
      min: 2,
      max: 20
    }
  }
}

License

MIT

Maintained By

0.50.0

7 years ago

0.14.8

8 years ago

0.14.7

8 years ago

0.14.6

8 years ago

0.14.5

8 years ago

0.14.4

8 years ago

0.14.3

8 years ago

0.14.2

8 years ago

0.14.1

8 years ago

0.13.10

8 years ago

0.14.0

8 years ago

0.13.9

8 years ago

0.13.4

9 years ago

0.13.3

9 years ago

0.13.1

9 years ago

0.12.2

9 years ago

0.12.1

9 years ago

0.12.0

9 years ago

0.12.0-beta3

9 years ago