datalevin

Jack Arrington 2026-06-11T04:10:56.237999Z

One small gotcha I found is that Entity objects do not work with merge, even if you touch them:

(merge (d/touch (d/entity (d/db conn))))

Jack Arrington 2026-06-11T04:11:36.189459Z

One small gotcha I found is that Entity objects do not work with merge, even if you touch them:

(merge (d/touch (d/entity (d/db conn))))
will throw
; Execution error (UnsupportedOperationException) at datalevin.entity.Entity/cons (entity.clj:65).
; nth not supported on this type: PersistentArrayMap

Jack Arrington 2026-06-11T04:14:17.837059Z

One small gotcha I found is that Entity objects do not work with merge, even if you touch them:

(merge (d/touch (d/entity (d/db conn) some-id)))
will throw
; Execution error (UnsupportedOperationException) at datalevin.entity.Entity/cons (entity.clj:65).
; nth not supported on this type: PersistentArrayMap
I know the documentation caveats they are not maps, just map-like, so I'm not sure if this qualifies as unintended behavior or not. One workaround is to use (into {} my-entity)

👍 1