datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
Richie 2021-04-14T18:35:12.067800Z

(let [db (ds/db-with (ds/empty-db) [{:db/id -1
                                     :my/attr "a"}])]
  (and (map? db) (keys db)))

;; The result object failed to print. It is available via *1 if you want to interact with it.
;; The exception was: 
;; TypeError: me.cljs$core$IMapEntry$_key$arity$1 is not a function

Richie 2021-04-14T18:38:19.068900Z

I have a datascript db in my re-frame app-db and re-frisk tries to diff the db. https://github.com/flexsurfer/re-frisk/blob/master/re-frisk/src/re_frisk/diff/diff.cljs#L11

Richie 2021-04-14T18:39:01.069600Z

Is this a bug?

Richie 2021-04-14T18:43:43.070100Z

My bad, I think this issue is already filed under re-frisk.

Richie 2021-04-14T18:52:20.072400Z

Actually never mind. I think it was misdiagnosed in re-frisk.

Richie 2021-04-14T18:53:55.072800Z

I’m going to file an issue in the datascript repo and follow up there.