You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered this library looking for a tool to parse Roam EDN exports. (Roam is a Clojure project, so EDN is their most native export format.)
Trying to parse a standard export with this library, I immediately run into:
NotImplementedError: Don't know how to handle tag ImmutableDict(datascript/DB)
Indeed, the Roam export begins with the tag #datascript/DB, but I'm unclear how this is meant to be handled. Am I supposed to register custom types or handlers or something?
The text was updated successfully, but these errors were encountered:
You can either use the tag decorator, or use add_tag(<tag>, <function or class>) directly. The parser calls the function (or class) on the tagged element.
A very simple no-op implementation would be:
fromedn_parseimporttag, add_tag@tag("datascript/DB")defidentity(m):
returnm# alternatively:add_tag("datascript/DB", lambdam: m)
I discovered this library looking for a tool to parse Roam EDN exports. (Roam is a Clojure project, so EDN is their most native export format.)
Trying to parse a standard export with this library, I immediately run into:
Indeed, the Roam export begins with the tag
#datascript/DB
, but I'm unclear how this is meant to be handled. Am I supposed to register custom types or handlers or something?The text was updated successfully, but these errors were encountered: