1.0.1 • Published 6 years ago

@cnine/egg-pg v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

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