Effect CommunityEC
Effect Community2y ago
2 replies
Dmitrii Bykov

Issue with `batching: true` in `Insert.execute` using `sql-sqlite-bun`

Hi! I'm playing with sql-sqlite-bun trying to adapt code from https://github.com/Effect-TS/effect/blob/main/packages/sql-pg/examples/resolver.ts and I noticed that batching: true doesn't work with Insert.execute.

It gives me this error:
ResultLengthMismatch: Expected 2 results but got 1


Turning batching off -- eliminates the error, batching with GetById.execute and GetByName.execute works well.
Was this page helpful?