Socket
Socket
Sign inDemoInstall

@cnine/egg-pg

Package Overview
Dependencies
43
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @cnine/egg-pg

PostgreSQL database plugin for egg based on pg-promise


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

egg-pg

Install

$ npm i @cnine/egg-pg --save

Usage

// {app_root}/config/plugin.js
exports.pg = {
  enable: true,
  package: 'egg-pg',
};

Configuration

// {app_root}/config/config.default.js
exports.pg = {
  // default
  host: 'localhost',
  port: 5432,
  database: 'postgres',
  user: 'postgres',
  // require
  password: 'password',
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT

Keywords

FAQs

Last updated on 21 Apr 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc