This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-03-05
Channels
- # beginners (229)
- # cider (54)
- # cljs-dev (187)
- # cljsrn (1)
- # clojure (187)
- # clojure-dev (5)
- # clojure-italy (31)
- # clojure-losangeles (1)
- # clojure-russia (3)
- # clojure-spec (76)
- # clojure-uk (29)
- # clojurescript (94)
- # cursive (18)
- # datascript (8)
- # datomic (26)
- # docker (6)
- # emacs (19)
- # figwheel (6)
- # fulcro (41)
- # garden (1)
- # graphql (1)
- # hoplon (33)
- # jobs (1)
- # jobs-discuss (1)
- # lein-figwheel (14)
- # leiningen (7)
- # nrepl (10)
- # nyc (1)
- # off-topic (2)
- # onyx (2)
- # parinfer (25)
- # portkey (6)
- # powderkeg (1)
- # protorepl (1)
- # re-frame (14)
- # reagent (14)
- # shadow-cljs (31)
- # spacemacs (3)
- # test-check (33)
- # uncomplicate (1)
- # unrepl (40)
- # vim (5)
- # yada (16)
In datomic whats the mechanism by which you reference another entity when doing a transaction when that entity isn’t in the db yet? something like:
[{:db/id -1
:person/name "sally"}
{:person/name "joe"
:person/spouse -1}
]
I’m not sure how to even phrase the question properly.maybe this section on temp ids is what i want: https://docs.datomic.com/on-prem/transactions.html#temporary-ids, There is no way to combine that with the map form insert?
@drewverlee yeah that’s basically it. There are examples in the day of datomic repo that I think show this.
maybe i have an old version of something
turns out i just didn’t tell the schema it was a ref. I wasn’t sure that was necessary in dataScript.
You can now use strings as temp ids
hi, is there a simple way to hook an on-change
sort of handler? I want to monitor all transactions and if a transaction adds/retracts a value for a specific entity to invoke a side-effectfull function
@U2J4FRT2T - Sorry, I meant Datomic Cloud.
Check if there is somethink like tx-report-queue
on client api reference
if there isn't, there's no support. 😕
you may suggest this feature on http://receptive.io (top right corner on http://my.datomic.com)
@U2J4FRT2T - Thanks. Unfortunately there isn't and that's why I asked. I will vote/suggest this feature though.
Is there a way to use the datomic.client.api against an in-memory database/connection? Keeping everything in the same process
@petterik No — on-prem requires a peer server to use the client API which would break your “in the same process” req.
Ok. Makes it a bit harder when developing stuff, not being able to create/destroy connections in-memory on the fly. An in-memory "peer-server" would be nice to have
I have a question about how to approach data migrations. I understand that if you follow the best practices for schema growth, older versions of an application will always have the appropriate schema available. My question is, should it be a goal to also have inverse data migrations (“down” data migrations), so that earlier versions of the app can be run in a dev setting?
With the pull api, is there a limit to how many relationships you can follow? Eg to get great grandson son >son>son
This {:persn/friends 6}
is a new feature?
Sometime ago I wrote a spec for pull pattern and I do not remember seeing this specification
I think the grammar in the docs is hand-written from their implementation; it's not copy-pasted from a parser generator's input
Thanks Favila, ill look at this when i get home
@U09R86PA4 Your right my example would work with recursion. Thanks! I guess i should have given my actual problem! In my case the relationships aren’t always the same, in fact each ref is different.
This might be better suited for the logic programming side of datomic i suppose