defineDb
call.QueryExecutorFn
, receives the query as a string and it’s parameters as arguments and should return a promise with the resulting rows and the affected row count.pg
pool but you can use any pool you want../tables
. These are the tables of your database schema. What they do and how they are defined are explained in the next chapter.