Fork me on GitHub
#datomic
<
2017-01-14
>
sova-soars-the-sora00:01:22

Hmm.. Maybe my setup is at fault, but even conj'ing $ to the arguments list didn't do it.

sova-soars-the-sora00:01:48

Pattern goes Last?

seantempesta19:01:45

So, I’m I’d like to monitor the tx-report-queue for changes and react to them, but I’m noticing the attribute keywords are not present. It appears they are being represented by the entity ids that were transacted when creating the schema. Is that correct? (d/transact conn* [{:db/id (tempid), :test/attr “Abcde”}])

{:db-before datomic.db.Db,
 @234dd5c2 :db-after,
 datomic.db.Db @d16ab2c7,
 :tx-data [#datom[13194139534314 50 #inst"2017-01-14T19:15:46.413-00:00" 13194139534314 true]
           #datom[277076930200555 64 "Abcde" 13194139534314 true]],
 :tempids {-9223090561879065153 277076930200555}}

seantempesta19:01:28

In the above example it appears that :test/attr is being represented as 64

potetm19:01:51

@seantempesta Attributes are entities as well!

potetm19:01:01

Those are the entity ids for each attribute.

seantempesta19:01:39

Is there an easy way to look them up? I was hoping calling (.a datom) would do it, but it just returns 64.

potetm19:01:52

You can access the corresponding keyword for an attribute id via d/ident.

tcarls21:01:49

Silly question here -- I'm trying to cut over from Datomic Pro to Datomic Free on a project, to let other developers spin up with less overhead, I'm having some trouble documenting how to get services started up -- with datomic-free-0.9.5544, bin/run -m datomic.peer-server fails saying it can't find datomic/peer_server__init.class or datomic/peer_server.clj, and indeed, I don't see them around in the distributed jars -- what am I missing?

tcarls22:01:48

...hmm; datomic-transactor-pro-0.9.5544.jar contains AOT'd datomic/peer_server, but datomic-transactor-free-0.9.5544.jar doesn't.

tcarls22:01:39

...it's not that new of a release, so I can't see this being an undetected bug...

tcarls22:01:41

didn't grok that the peer is what the client connects to. Now this makes sense. 🙂

sova-soars-the-sora23:01:20

@tcarls did you figure out your issue?