types for database/transaction
Hey, I have this function:
You can see, that I get a
I could do something like this:
But then I can access
You can see, that I get a
database as variable. That can either be a default postgres database (easy to type) or it can be a transaction (how to type). I would like to know how to type them correctly, so I can use users in this case?I could do something like this:
But then I can access
users via database.query.users :/