shonubijerry/quick-credit

View on GitHub
server/config/connection.db.js

Summary

Maintainability
A
0 mins
Test Coverage
import { Pool } from 'pg';
import dotenv from 'dotenv';
import debug from 'debug';
import Config from './config';

dotenv.config();

const connectTo = Config.getDbCredentials();
debug('app/debug')(connectTo);


const pool = new Pool({ connectionString: connectTo.dataURL });

export default pool;