Commit dfa40f37 by Denys Tito Urbano

Conexión a base de datos agregado

parent e2d42648
require('dotenv').config();
const pgp = require('pg-promise')({ query(e) { console.log(e.query) } });
const username = process.env.DB_POSTGRESQL_SIIAA_USERNAME;
const password = process.env.DB_POSTGRESQL_SIIAA_PASSWORD;
const database = process.env.DB_POSTGRESQL_SIIAA_NAME;
const host = process.env.DB_POSTGRESQL_SIIAA_HOST;
const port = process.env.DB_POSTGRESQL_SIIAA_PORT;
const connection = pgp(`postgres://${username}:${password}@${host}:${port}/${database}`);
module.exports = connection;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment