Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ectypes-postgres

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ectypes-postgres

An ectypes strategy for node-postgres

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

ectypes-postgres

An ectypes strategy for node-postgres

Installing

npm install ectypes-postgres

Running tests

Steps.

  1. ectypes-postgres uses ectypes as a peer dependency, so if you want to run tests locally you will have to manually npm install ectypes.

  2. Identify the connection string.

The postgres strategy connects via a connectionString that is passed into a constructor function.

For example, in the tests:

strategy = new PGStrategy(process.env['DBCONN']);

If you want the tests to run you will need to work out this value (see step 3). Similarly, if you want to develop against this lib you will need to come up with a way to identify this value.

  1. Run mocha

NODE_ENV=test DBCONN=postgres://nicholasf:@localhost/keno_api_link_test mocha

See the tests, https://github.com/brianc/node-postgres and https://github.com/nicholasf/ectypes.js

License

Copyright (c) 2012 Nicholas Faiz
Licensed under the MIT license.

FAQs

Package last updated on 04 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc