axxerion-api/db.js

15 lines
275 B
JavaScript

const { Pool } = require("pg");
const pool = new Pool({
host: "localhost",
port: process.env.DB_PORT || 5440,
database: "axdb",
user: 'postgres',
password: 'AXU001',
max: 10
});
const query = (text, params) => pool.query(text, params);
module.exports = query;