Interface for both db and tx
I am trying to create some utility functions that would accept both DB and transaction.
I tried the following
trying to pass my db type to it results in error (passing tx works)
here is how my query function looks like
how can i fix this
1 Reply
I found the solution I also created a
type PostgresJsDatabase<typeof schema>
and made the extends blok or block