datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
unbalanced 2018-10-08T12:09:17.000100Z

@clashthebunny did you try @build.core/conn?

ClashTheBunny 2018-10-08T12:21:10.000100Z

That's where I got the datoms out.

unbalanced 2018-10-08T12:55:17.000100Z

I meant in the query

unbalanced 2018-10-08T12:55:42.000100Z

(datascript.core/q '[:find ?e :where [?e :deck-list _]] @deck-builder.core/conn)

ClashTheBunny 2018-10-08T13:23:41.000100Z

That does seem to do it!

unbalanced 2018-10-08T15:18:12.000100Z

haha yay 😄

unbalanced 2018-10-08T15:21:30.000100Z

looking for some advice on best practices. Right now I'm using a compound key to relate pieces of data in datascript but my intuition tells me this isn't the best practice.