Handling extensions in a configurable API like `@effect/sql-pglite` can be a bit tricky, especial...
I'm building an
What's the best way to represent this with Layer and Tag? I've come up with this and it mostly works:
The only problem is when using the tag returned by this function the R of the effect contains
What's the best way to deal with this sort of configurable API for services?
@effect/sql-pglite package so I can use https://pglite.dev/ with effect-sql. I've got it all set up and working but am having trouble figuring out the best pattern to deal with extensions. PGlite can load extensions and their apis get namespaced under the client. Example: What's the best way to represent this with Layer and Tag? I've come up with this and it mostly works:
The only problem is when using the tag returned by this function the R of the effect contains
"MyStringTag" instead of a type like it usually does with Tag/Service definitions. I don't know if that presents a problem in practice.What's the best way to deal with this sort of configurable API for services?
