Issues with Creating a Custom Context.Tag for Typed Drizzle Database
I'm trying to create a custom Context.Tag for a typed Drizzle database, but running into type errors with @effect/sql-drizzle/Pg.
How can I properly create a Layer that provides my custom
PgDrizzle.make({ schema }) returns Effect<PgRemoteDatabase<typeof schema>, never, SqlClient>, but when I use it with Layer.effect(Database, PgDrizzle.make({ schema })), I get type errors about incompatible module resolution modes for drizzle-orm imports.PgDrizzle.layerWithConfig({ schema }) gives errors because it expects Record<string, never> instead of my actual schema type.How can I properly create a Layer that provides my custom
Database tag with the correct schema types from PgRemoteDatabase<typeof schema>?