This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-19
Channels
- # announcements (2)
- # babashka (53)
- # beginners (71)
- # calva (15)
- # clerk (4)
- # cljfx (1)
- # clojure (18)
- # clojure-europe (13)
- # clojure-nl (1)
- # clojure-norway (26)
- # clojure-uk (4)
- # datascript (2)
- # datomic (3)
- # emacs (4)
- # events (1)
- # fulcro (45)
- # honeysql (2)
- # hyperfiddle (6)
- # missionary (8)
- # reitit (2)
- # releases (2)
- # shadow-cljs (10)
- # squint (33)
- # xtdb (4)
what are the most minimal minimal steps required to make the datomic.core.db
NS loaded (on a Datomic Cloud ion server)?
this NS has a lot of useful utils, like datomic.core.db/pretty-datum
, but im not able to require it in a freshly started REPL:
user=> (require 'datomic.core.db)
Execution error (FileNotFoundException) at user/eval12145 (REPL:1).
Could not locate datomic/core/db__init.class, datomic/core/db.clj or datomic/core/db.cljc on classpath.
however, after loading my whole (Datomic Cloud) app, the datomic.core.db
NS is available both locally and on ion servers.i wanted to extend puget printer, so it can print datums in transaction results (`:tx-data` from d/transact
& d/with
or just :data
from d/tx-range
) more concisely and for that i needed to know what's the type of a datum, which came back as datomic.core.db.Datum
.
so i've peeked into that NS with (clojure.repl/dir datomic.core.db)
and checked the vars with clojure.repl/doc
, eg. (clojure.repl/doc datomic.core.db/reverse-key?)