Effect, express and @effect/sql

I'm trying to setup a minimum effect, express and @effect/sql application (HTTP server).
Here's the gist: https://gist.github.com/belfz/fe58eb453304347dd9df73542f833a67

However, my only route handler "hangs" upon an attempt to run the SQL query (see lines 24-25). It just never returns.

I suspect it might have something to do with the use of FiberSet and run.
I'm absolutely certain that the database connection is established correctly - when I run the query within routes (e. g. placing it right after the line 34) it all runs correctly. But when inside sqlRouteHandler - it just never works.

What am I doing wrong?
Gist
GitHub Gist: instantly share code, notes, and snippets.
effect-express.ts
Was this page helpful?