Fork me on GitHub
#datomic
<
2023-05-23
>
J15:05:30

Hi! Is there an official docker image to run a transactor?

👍 1
jaret23:05:56

No but we are taking making one under consideration.

👍 5
🚀 4
J10:05:22

It would be great!

enn15:05:40

Given a composite tuple, is there a way to get its component tupleAttrs?

Lennart Buit16:05:35

Or are you looking for which attrs make up the tuple? In which case the schema entity for your attribute just has a tupleAttrs datom with an array as value, so this may work:

(d/q {:find [?attrs]
      :where [[?e :db/ident :my-entity/x+y]
              [?e :db/tupleAttrs ?attrs]]})

favila16:05:15

?attrs is a keyword here (ident value) not an attribute entity id, just as an FYI

Lennart Buit16:05:34

Yeah I saw you typing and I started wondering

favila16:05:35

correction, actually it’s a vector of keywords

favila16:05:47

(homogenous tuple)

Lennart Buit16:05:25

Offtopic: favila is typing imposes some fear in me when I try to be helpful in this channel. In a good, you are much more knowledgeable than me and I like to be corrected, way ^^

enn16:05:32

Yes, I guess querying the schema is the way to go. I was sort of expecting d/attribute to return the tupleAttrs and was thrown a bit when it didn’t.

favila16:05:48

yeah me too, not sure why it doesn’t