sourcify
sourcify copied to clipboard
Refactor `database-util.ts` file into a class
We are passing databasePool
and schema
to every function inside database-util.ts
. It's better if we move all the functions that query the database into a class and then use its properties to access databasePool
and schema
.