Help Needed with Config and SqlClient for Database Querying Using Drizzle ORM

Hey guys, I could use some help with how to work with Config and the SqlClient.
As you can see in the image, i'm trying to set up a way to query my db through Drizzle orm.
The thing is, the url param passed to PgClient.layer has to be a type redacted<string>.
I don't quite get how to obtain it (assuming the DATABASE var is part of my environment).

Another thing: I guess I need to do something to connect the PgDrizzle thing to my db schema (which is defined in another file, not in the image). Where should it be put?
image.png
Was this page helpful?