colouring-montreal/tileserver/db.js

9 lines
180 B
JavaScript
Raw Normal View History

2018-07-30 05:25:34 -04:00
const { Pool } = require('pg')
const config = require('./config')
const pool = new Pool(config.database)
module.exports = {
query: (text, params) => pool.query(text, params)
}