Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.
/ egg-pg Public archive

PostgreSQL database plugin for egg based on pg-promise

License

Notifications You must be signed in to change notification settings

Aysnine/egg-pg

Repository files navigation

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

About

PostgreSQL database plugin for egg based on pg-promise

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published