This is a read-only interactive environment to try out Datomic queries and read APIs with Clojure.
-
Ctrl-Enter (Cmd-Enter on Mac) to evaluate code
-
Read-only: you can’t d/transact new facts
-
Alias d is the Datomic Peer API (minus side-effecting functions), so d/q is datomic.api/q
-
The homepage’s moons dataset is provided via connection conn and database value db
-
More sample datasets are available in sample-db, e.g. (:streets sample-db) or (:mbrainz sample-db)
We provide the code samples from the Datomic homepage as a starting point. Please explore!