9 lines
180 B
JavaScript
9 lines
180 B
JavaScript
|
const { Pool } = require('pg')
|
||
|
const config = require('./config')
|
||
|
|
||
|
const pool = new Pool(config.database)
|
||
|
|
||
|
module.exports = {
|
||
|
query: (text, params) => pool.query(text, params)
|
||
|
}
|