@cnine/egg-pg
v1.0.1
Published
PostgreSQL database plugin for egg based on pg-promise
Downloads
1
Readme
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.