Expose mapColumnValue
on session instances
#4794
aleclarson
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As of Jul 27 2025, the
sql-js
andlibsql
drivers pass anormalizeFieldValue
to the custom result mapper.drizzle-orm/drizzle-orm/src/libsql/session.ts
Line 373 in c0277c0
drizzle-orm/drizzle-orm/src/sql-js/session.ts
Line 295 in c0277c0
It'd be great to expose that function on the
SQLiteSession
as a method, so libraries can use it. For my particular use case, drizzle-plus allows using RQB queries as subqueries, e.g. using theas()
method extension. I need to callmapRelationalRow
for the subquery to work, and there are data-mapping edge cases I can't cover without the session'snormalizeFieldValue
function.Beta Was this translation helpful? Give feedback.
All reactions