colouring-montreal/tileserver/db.js
2018-07-30 10:25:34 +01:00

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)
}