Handling Multiple Database Instances in Effect Typescript
I lost the message, but @Tim Smart I think wrote at some prior point that you should just provide the DB instance to the function doing the query? I'm used to defining this at a higher level. I had my DatabaseLive being provided right after the HttpServer is ran and can use it throughout, but now I need a second database, so not sure how I can do this cleanly or the proper way.
I'm trying providing DatabaseLive where the query is and it seems to work