This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-13
Channels
- # aleph (1)
- # announcements (14)
- # aws (8)
- # babashka (3)
- # beginners (49)
- # cider (6)
- # clara (7)
- # clj-kondo (58)
- # cljs-dev (17)
- # clojure (65)
- # clojure-dev (45)
- # clojure-europe (5)
- # clojure-italy (4)
- # clojure-nl (25)
- # clojure-norway (3)
- # clojure-uk (68)
- # clojurescript (10)
- # cursive (5)
- # datomic (12)
- # emacs (24)
- # fulcro (149)
- # hoplon (56)
- # kaocha (2)
- # luminus (18)
- # malli (7)
- # off-topic (12)
- # other-languages (82)
- # reagent (16)
- # reitit (7)
- # shadow-cljs (44)
- # spacemacs (4)
- # tools-deps (48)
- # xtdb (17)
hi! is there a way to rotate the Datomic Cloud access keys (stored in S3)? I did something stupid with one of my access keys, and even though it’s a test solo install, would rather not delete & recreate it
Hello. I'm trying to run a transactor in ddb setup
EDIT My ping-port return 200 ok
but the peer can't connect.
There is no error's in transactor stdout/err or logs dir.
Error communicating with HOST 10.0.0.150 on PORT 4334 {:alt-host
nil, :peer-version 2, :password "<redacted>", :username "xxxxx", :port 4334, :host "10.0.0.150", :version "0.9.6014", :timestamp 1578928111501, :encrypt-channel true}
Hello. I'm having trouble writing/using a custom transaction fn. Specifically, it seems to choke only on attributes that are :db.cardinality/many
. From the repo that contains the function I can can inovke:
(my-namespace/my-db-fn (datomic.api/db conn) {:test-entity/id "my-unique-id"
:test-entity/coll ["foo" "bar"]})
And I get an output I expect:
[[:db/add "DBID23569" :test-entity/id "my-unique-id"]
[:db/add "DBID23569" :test-entity/coll "foo"]
[:db/add "DBID23569" :test-entity/coll "bar"]]
When I pass the output to datomic.api/transact
, it transacts and I can query it and very that it's there.
However, when I try to invoke the function running on the transactor:
(datomic.api/transact conn [['my-namespace/my-db-fn {:test-entity/id "my-unique-id"
:test-entity/coll ["foo" "bar"]}]])
I get this error:
:db.error/wrong-type-for-attribute Value [foo bar] is not a valid :string for attribute :test-entity/coll
I would appreciate any pointers in a helpful direction, because I'm completely lost as to what to do. Thanks!Maybe a Dumb Question, but are you sure that the transactor has the same version of the function as what is in your repl?
perhaps it has an earlier version that returned [:db/add "DBID23569" :test-entity/coll ["foo" "bar"]]
?
I only ever deployed one version, so that couldn't be it. On the bright side I found the answer (for posterity's sake):
sending vectors to the transactor get deserialized as java.util.ArrayList
. I was using clojure.core/coll?
to detect collections, but java.util.ArrayList
s respond false
to clojure.core/coll?
. I switched to check for java.util.Collection
and it all seems to work now.
Hi are there any more complete examples of the analytics metaschema around? (e.g. for mbrainz)
Hi @U380J7PAQ here is my metaschema which I use on the subset of mbrainz-1968-1973.
;;mbrainz subset metaschema
{:tables ;; :membership-attr->opts
{:abstractRelease/gid {}
:artist/gid {}
:country/name {}
:artist.type/name {}
:artist.gender/name {}
:label.type/name {}
:label/gid {}
:language/name {}
:medium.format/name {}
:release.packaging/name {}
:medium/format {}
:release/gid {}
:script/name {}
:track/name {}}
:joins ;;ref-attr -> tablename
{:abstractRelease/artists artist
:label/country country
:label/type label_type
:release/country country
:release/language language
:release/script script
:release/packaging release_packaging
:release/artists artist
:release/labels label
:artist/country country
:artist/gender artist_gender
:artist/type artist_type
:medium/format medium_format
:medium/tracks track
:track/artists artist}}