You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
392 B

import pg from "pg";
async function query(query,values) {
const client = await new pg.Client({
user: process.env.PG_USER,
password: process.env.PG_PASSWORD,
host: process.env.PG_HOST,
database: "spotifine",
});
client.connect();
const res = await client.query(query,values);
await client.end();
return res;
}
export default query;