© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Confusion About Using `Effect.promise` with `effect/sql-drizzle` - Effect Community
EC
Effect Community
•
9mo ago
go
Confusion About Using `Effect.promise` with `effect/sql-drizzle`
as a followup to this
:
🚀-beginners
Understanding the use of Effect.promise with Drizzle calls in Effect TS
, i
'm confused again
.
as i understand it
, effect
/sql
-drizzle patches drizzle to return effects
. in that case
, why is it necessary to use
Effect.promise
Effect.promise
when calling
$returningId
$returningId
? not wrapping it with
Effect.promise
Effect.promise
causes the call to return an empty array
(i
.e
. not returning the id
)
what am i missing
? what should my mental model of using
Effect.promise
Effect.promise
with effect
/sql
-drizzle be
?
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Using @effect/sql with Drizzle for Repositories and Connection Pooling
EC
Effect Community / 🚀-beginners
17mo ago
Examples of Using `@effect/sql-drizzle` with Turso or D1?
EC
Effect Community / 🚀-beginners
2y ago
Extracting Nested Errors in `effect/Cause` with `@effect/sql-drizzle` and `@effect/sql`
EC
Effect Community / 🚀-beginners
7mo ago
Understanding Nested Transactions with `sql.withTransaction` in Effect and `sql-drizzle`
EC
Effect Community / 🚀-beginners
5mo ago