This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-31
Channels
- # aleph (1)
- # announcements (2)
- # beginners (105)
- # braveandtrue (1)
- # cider (61)
- # clara (47)
- # cljdoc (29)
- # cljs-dev (5)
- # clojure (61)
- # clojure-austin (14)
- # clojure-brasil (1)
- # clojure-india (3)
- # clojure-italy (4)
- # clojure-mexico (1)
- # clojure-nl (2)
- # clojure-spec (37)
- # clojure-uk (95)
- # clojurescript (73)
- # cursive (12)
- # data-science (1)
- # datomic (26)
- # duct (10)
- # emacs (5)
- # fulcro (47)
- # hoplon (6)
- # hyperfiddle (3)
- # jobs-discuss (3)
- # kaocha (2)
- # leiningen (3)
- # nrepl (8)
- # off-topic (3)
- # onyx (2)
- # re-frame (31)
- # reitit (16)
- # shadow-cljs (36)
- # spacemacs (46)
- # specter (16)
- # tools-deps (13)
- # yada (22)
@kenny we have a support ticket logged for that problem (although we call API gateway, but get the same error returned in the body of the HTTP response). @jaret can tell you more about the status.
@stijn not sure if it's related, but to add to kenny's comment, i get this error the first time i run an ion from API Gateway: java.io.IOException: Premature EOS, presumed disconnect
Hey ya'll -- noob datomic question: I have a bunch of records called "intents". These should have very rarely been updated in the last 1-2 years. I want to find all the records that have been updated in the last 2 years
your query seems consistent with "record" meaning entity with :intent/uuid and "updated" meaning any assertion/retraction about that entity at all
I'm reading through time-rules https://github.com/Datomic/day-of-datomic/blob/master/tutorial/time-rules.clj and so far made something like this
(d/q '[:find (max ?t) (max ?inst)
:in $ %
:where
[?e :intent/uuid]
(entity-at ?e ?tx ?t ?inst)]
(d/history (db)) time-rules)
query is still running as I write this
If someone can help me craft this query would appreciate it 🙂Has anyone come up with fns/rules to help detect when you're about to transact schema that would violate http://blog.datomic.com/2017/01/the-ten-rules-of-schema-growth.html? I'm aware of Conformity and the other migration libraries, but I'm more interested in detecting breaking schema changes.
@robert.mather.rmm I wrote this to detect breaking changes in our schema.
Beautiful! Thank you sir. Is db-schema-attributes
dynamically bound? Or maybe private to your code and defined elsewhere?
Beautiful! Thank you sir. Is db-schema-attributes
dynamically bound? Or maybe private to your code and defined elsewhere?
Check if there's an assertion that connects the two entities via an is-component attribute
example rule:
[(is-component-entity? [?component] ?owner)
[?component ?a ?owner]
[(datomic.api/attribute $ ?a) ?attr]
[(:is-component ?attr)]]
Transaction functions should return a seq of :db/{add|retract}
statements right? So what's the right syntax for invoking an installed tx fn?
1. (d/transact conn {:tx-data '(my.namespace/my-fn! arg1 arg2)})
2. (d/transact conn {:tx-data ['(my.namespace/my-fn! arg1 arg2)]})
3. Something else?
I see style 2 in https://docs.datomic.com/cloud/transactions/transaction-functions.html#text-calling
But when I call using that style, I get this error: clojure.lang.ExceptionInfo: clojure.lang.LazySeq cannot be cast to java.lang.Number
I can test locally like: (d/transact conn {:tx-data (my.namespace/my-fn! db-val arg1 arg2)})
and it works fine