Effect CommunityEC
Effect Community2mo ago
1 reply
LiquiFruit

Error with PgCountBuilder and Yield in TypeScript

Why does this fail?
const db = yield* PgDrizzle.PgDrizzle
const count = yield* db.$count(table)

Type 'PgCountBuilder<PgSession<any, any, any>>' must have a '[Symbol.iterator]()' method that returns an iterator

I assume not everything on the drizzle client has been wrapped in @effect/sql-drizzle.

Would love to get pointed in the direction of how I could make a PR for something like this.
Was this page helpful?