This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-11
Channels
- # announcements (1)
- # aws (2)
- # beginners (140)
- # boot (67)
- # cider (50)
- # clojure (64)
- # clojure-berlin (1)
- # clojure-conj (1)
- # clojure-france (2)
- # clojure-italy (2)
- # clojure-nl (8)
- # clojure-norway (6)
- # clojure-seattle (1)
- # clojure-spec (81)
- # clojure-sweden (2)
- # clojure-uk (131)
- # clojurescript (147)
- # clojutre (7)
- # cursive (40)
- # datomic (34)
- # editors (5)
- # emacs (7)
- # events (9)
- # figwheel (18)
- # figwheel-main (1)
- # fulcro (2)
- # instaparse (1)
- # jobs (3)
- # leiningen (1)
- # luminus (10)
- # lumo (1)
- # mount (6)
- # off-topic (12)
- # pedestal (4)
- # portkey (7)
- # re-frame (8)
- # reagent (21)
- # reitit (10)
- # ring-swagger (5)
- # shadow-cljs (140)
- # specter (4)
- # tools-deps (53)
- # uncomplicate (1)
i'm issuing a pull with a reverse rel (d/pull db [{:item/_patient [:db/id ...]}] patient-id)
and i'm getting back {:item/_patient {:db/id}}
where i would expect to see {:item/_patient [{:db/id ...} ...}]}
am i missing something obvious here?
please advice how i can do re-find
with dynamic pattern on some attribute?
(d/q `[:find ?e
:in $ ?pattern
:where
[:e :user/id]
[:e :user/name ?name]
[(re-find ?pattern ?name)]]
db (re-pattern "John.*Smith"))
doesnt work for methis is on-prem
actually it is
@kirill.salykin that works for me. I assume you aren't putting a regex literal in the query because then Datomic fails to cache the query? (That's my experience.)
@eraserhd it worked for me as well, after I posted the message
there is mine sorry
in the end
thanks for help
the on prem docs say you can use :find ?id .
, with a period at the end, to return a single scalar value. however when I attempt to use it (on Datomic Cloud), I’m told it’s not a valid find-rel
On Prem is not the same as Cloud. You cannot currently do that in Cloud. https://docs.datomic.com/cloud/query/query-data-reference.html#find-specs https://docs.datomic.com/cloud/query/query-data-reference.html#arg-grammar
I guess I was confused since it was simply elided, instead of called out as a difference
'[:find ?user .
:in $ ?id
:where
[?user :user/authentications]
[_ :user.authentication/id ?id]]
Is there a way to set the transactor sql url as a Java property? Something along the lines of -Ddatomic.sqlUrl=jdbc:<postgresql://localhost:5432/datomic> rather than in the passed in properties file? I've looked here (https://docs.datomic.com/on-prem/system-properties.html#transactor-properties) and don't see a property listed.
my db has entities representing users of the system, and I want to be able to query for which users transacted which assertions. How do people do this ? I'm thinking of including an assertion about a user (such as :last-active-timestamp
) with every transaction so that I can join on the txid
well it's for the users themselves to query for what they did
Do Ions work with :local/root
in your deps.edn? I tried making one of my deps :local/root
, did an unreproducible push, and got a CompilerException saying it cannot locate a file in the dependency I made :local/root
.
I also don't get cognitect.s3-libs.s3/upload
logged for the dependencies that are :local/root
. Being able to push a :local/root
dependency would be quite helpful for debugging. At the very least, it should warn that the local dependency will not be included in the uploaded zip.
However, if I look in the unrepro zip located in target/datomic/apps/<system>/unrepro/<name>.zip/app
, I see a directory name __local-1455
which includes the source files for my local dependency.
No idea how it actually works, but the local directory __local-1455
is in the bundle-classpath.edn
file as the value for my local/root dependency.
Hmm. It appears an older version of my dependency was getting put on the CP. Deleting .cpcache seems to have fixed it.
you can always -Sforce to force recomputation of the cached classpath
Would it be possible to update AWS SSM dependency to at least 1.11.375? That release adds getARN
and getLastModifiedDate
to Parameter
.
@U083D6HK9 I will bump to latest for the next release, presuming it causes no errors in testing.
any thoughts on 'inter app' comms? i've started mucking around with query groups. and thinking through approaches
@U083D6HK9 we have not doc'ed these yet
Treat there as nothing but rough notes but it’s pretty easy to script it into a single step deploy. https://gist.github.com/olivergeorge/f402c8dc8acd469717d5c6008b2c611b
Yeah, I guessed they existed and from that point the documentation on the ions reference page provided the necessary details. https://docs.datomic.com/cloud/ions/ions-reference.html#push