$ npm i @cnine/egg-pg --save
// {app_root}/config/plugin.js
exports.pg = {
enable: true,
package: 'egg-pg',
};
// {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.
Please open an issue here.