This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-10
Channels
- # announcements (3)
- # babashka (16)
- # beginners (41)
- # biff (4)
- # calva (14)
- # circleci (1)
- # clj-http (24)
- # clj-kondo (9)
- # clj-on-windows (31)
- # cljs-dev (52)
- # clojure (162)
- # clojure-australia (10)
- # clojure-europe (52)
- # clojure-nl (2)
- # clojure-spec (1)
- # clojure-uk (5)
- # clojurescript (40)
- # conjure (6)
- # core-async (3)
- # cursive (5)
- # datalevin (11)
- # datomic (7)
- # emacs (12)
- # etaoin (19)
- # events (1)
- # figwheel-main (17)
- # fulcro (4)
- # graalvm (3)
- # gratitude (13)
- # honeysql (8)
- # introduce-yourself (7)
- # london-clojurians (1)
- # off-topic (9)
- # polylith (9)
- # rdf (1)
- # re-frame (21)
- # releases (5)
- # remote-jobs (4)
- # sci (28)
- # shadow-cljs (15)
- # spacemacs (2)
- # vim (4)
- # xtdb (15)
0.6.9 is released, with two fixes and added a set of utility functions to customize search Thanks to @brownjoshua490 and @nils.grunwald
🎉 6
Hi All! The following throws an error and i'm not sure why. I do have a work around but just curious why that happens
(def conn (d/get-conn "./demo" schema))
(d/update-schema conn {:xid {:db/cardinality :db.cardinality/one
:db/valueType :db.type/long
:db/unique :db.unique/identity}})
(d/transact! conn [{:xid 2 :word "one"}])
;=> {:datoms-transacted 2}
(d/transact! conn [{:xid 2 :word "one"}])
;=> {:datoms-transacted 0}
(d/transact! conn [{:xid 3.0 :word "one"}])
;=> {:datoms-transacted 2}
(d/transact! conn [{:xid 3.0 :word "one"}])
;=>clojure.lang.ExceptionInfo: Unable to write transit:"java.lang.Exception: Not supported: class datalevin.datom.Datom" {:value {:error :transact/unique, :attribute :xid, :datom #datalevin/Datom [73 :xid 3.0], :type "class clojure.lang.ExceptionInfo"}}
My work around is to do the following
(d/transact! conn [(update-in {:xid 3.0 :word "one"} [:xid] long)])
exactly so why does it work the first time? In pods it errors out and kills the session in lein I get a datalevin transaction error and continues