LabiciIvan / php-api-nutritional-project

A PHP API nutritional project
0 stars 0 forks source link

NutritionPDO - additional features #26

Closed LabiciIvan closed 1 month ago

LabiciIvan commented 1 month ago

Description: Class NutritionPDO::class exists in the App/Database/ directory and needs additional features.

Create a quickFetch() public method which will be able to fetch data based on the provided SQL query string and return an array with results or null instead.

Create an executeQuery method which will execute a prepared statement based on a query and optional query array with values for prepare statement holders.

Modify existing method return type to be NutritionPDO which will aid in using custom additional custom methods.