Wilsonator123 / Secure-Blog-Page

DSS Projecy
1 stars 0 forks source link

Remake database connection function and query execution for prepared statements #53

Open Sleepy-Git-User opened 6 months ago

Sleepy-Git-User commented 6 months ago

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.