This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-24
Channels
- # aleph (1)
- # announcements (22)
- # atom-editor (11)
- # babashka (46)
- # beginners (60)
- # calva (44)
- # cider (18)
- # circleci (1)
- # cljdoc (12)
- # cljs-dev (5)
- # cljsrn (19)
- # clojars (3)
- # clojure (162)
- # clojure-dev (9)
- # clojure-europe (6)
- # clojure-italy (2)
- # clojure-losangeles (2)
- # clojure-nl (5)
- # clojure-spec (7)
- # clojure-uk (23)
- # clojureremote (1)
- # clojurescript (55)
- # community-development (14)
- # core-async (234)
- # cursive (14)
- # data-science (3)
- # datomic (32)
- # fulcro (5)
- # graalvm (20)
- # graphql (2)
- # hugsql (4)
- # jobs (11)
- # jobs-discuss (2)
- # joker (1)
- # juxt (3)
- # kaocha (1)
- # luminus (1)
- # off-topic (33)
- # pathom (3)
- # pedestal (1)
- # reagent (24)
- # remote-jobs (3)
- # shadow-cljs (38)
- # spacemacs (4)
- # specter (4)
- # speculative (54)
- # tools-deps (62)
- # vim (8)
- # vscode (14)
Hi, is it possible to create a tuple (composite key) that refers to a inverse key (from a parent that has this entity as subcomponent)?
{
:db/ident :subcomponent-entity/composite-key
:db/valueType :db.type/tuple
:db/tupleAttrs [:parent/_subcomponent-entities :subcomponent-entity/id]
:db/cardinality :db.cardinality/one
:db/unique :db.unique/identity
}
I'm considering deploying a web app api I've developed locally via Datomic Ions, currently I'm using a boot for deps + a number of tasks. It looks like I need to specify my deps via the clojure cli EDN format in order to deploy via clojure -iAion-dev
, is there an easy way to use boot for deps + tasks while deploying to ion?
using deps is always ultimately just running a java command line
so there's no reason you can't do the equivalent
it would look something like java -cp <ion-dev-deps> clojure.main -m datomic.ion.dev '{:op :push}'
where <ion-dev-deps> are the transitive deps from com.datomic/ion-dev 0.9.247 (you will also need maven repository "datomic-cloud" {:url "<s3://datomic-releases-1fc2183a/maven/releases>"})
I don't know what the best way to make that happen with boot is, but should be doable
I'd like to create a rule that gives me all the passed entity and all entities it refers too, but I'm not able to get the "same" rule to work
'[[(self-or-refers-to ?e1 ?e2)
[(= ?e1 ?e2)]]
[(self-or-refers-to ?e1 ?e2)
(refers-to ?e1 ?e2)]
[(refers-to ?parent ?entity)
[?parent ?ref ?entity]
[?ref :db/valueType :db.type/ref]]
[(refers-to ?parent ?entity)
(refers-to ?parent ?e)
(refers-to ?e ?entity)]]
Using =
gives me [?e2] not bound in expression clause: [(= ?e1 ?e2)]
How would I go about that?in practice datomic rules can’t be run backwards efficiently, so it’s easier to think of input and output params (although you can bind the output params as a kind of filter)
> We can require that variables need binding at invocation time by enclosing the required variables in a vector or list as the first argument to the rule
Thank you! That paragraph seems to be missing from the cloud docs, but supposedly it works the same. It's still there in the example.
Using identity works great, really didn't think of that.
[(self-or-refers-to [?e1] ?e2)
[(identity ?e1) ?e2]]
It works both with and without the brackets. Would the brackets make it more efficient, or is in this case more of a documentation think to signal that we expect it to be bound?I am trying to start my first AWS Solo instance. So beware the n00b. I have looked at the troubleshooting page but do not see why my stack is failing along with autoscaling alerts:
The problem was there are timeouts that default to 10 minutes in the template launch forms. Changing those looks like it is helping.
Seems like it creates the storage, tries to scale it and dies, I believe. I have every permission under my account (full admin).