The way we execute queries in code form wasnt using prepared statements and didnt use promises.
So Ive remade the file and added a new function to connect to the pool and run pre made queries in a json (in line). It takes the query json name and parameters as inputs.
The way we execute queries in code form wasnt using prepared statements and didnt use promises.
So Ive remade the file and added a new function to connect to the pool and run pre made queries in a json (in line). It takes the query json name and parameters as inputs.