Skip to content
Permalink
c95f2737f1
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
15 lines (11 sloc) 318 Bytes
require('dotenv').config();
const pgp = require('pg-promise')(/* initialization options */);
const cn = {
host: process.env.host,
port: 5432,
database: process.env.database,
user: process.env.user,
password: process.env.password
};
const db = pgp(cn); // database instance;
module.exports = db;