Fork me on GitHub
#datomic
<
2018-02-07
>
laujensen08:02:05

Topological question. I have a server with datomic on it. It has a transactor and a mysql running as the only services. When connecting from a peer, I specificy only the mysql ip and port, but not the transactors. Is it even used then? The transactor I mean

robert-stuttaford08:02:20

@laujensen yes. peers discover transactor details from storage; this is how high-availability works (transactors heartbeat into storage)

laujensen08:02:33

brilliant, thanks 🙂

val_waeselynck09:02:13

How do you go about giving your coworkers access to the Peer library without giving them your http://my.datomic.com credentials?

val_waeselynck13:02:03

ah nevermind, bin/maven-install was really what I was after.

jaret02:02:31

I know several of our clients with large teams keep their datomic account on an “<mailto:[email protected]|[email protected]>” shared e-mail. If you find you need something like that let me know and I can update your technical contact information/issue a password reset.

val_waeselynck13:02:39

Thanks @U1QJACBUM, the problem I see with that approach is that each time a developer leaves the company I will probably have to change the credentials :s

laujensen14:02:19

does setting :no-history on an attribute erase all historic data?

Hendrik Poernama16:02:06

is there a way to do something like clojure's ensure in cloud? I can use :db.fn/cas with the same value, except when value is nil

favila17:02:44

:db.fn/cas works with nil as the old value

favila17:02:52

(not with nil as the new value)

favila17:02:16

so you want to make sure something is nil when the tx starts and ends?

favila17:02:42

you could use a nonce attribute

favila17:02:35

no-history attr, assert it on an entity with a value; assert a new value at end of tx, update with db.fn/cas. lets you do optimistic locking

favila17:02:49

client just sets it to something random

Hendrik Poernama20:02:17

interesting idea, will test it out

tomc22:02:08

I have a rule with multiple definitions and one output variable. It looks like: [(references-somewhere ?scope ?referencee ?referencer) [?scope ?a ?referencee] [?a :db/isComponent false] [?a :db/valueType :db.type/ref]] [(references-somewhere ?scope ?referencee ?referencer) [?referencer ?a ?referencee] [?a :db/isComponent false] [?a :db/valueType :db.type/ref] (descendant ?referencer ?scope)] I can't figure out what syntax to use in that first definition to indicate that ?referencer should be bound to the value of ?scope. Can someone help me out?

marshall13:02:47

You can use Clojure functions in a rule. I’m not 100% clear on what you’re looking for, but you could, for example, include a clause: [(= ?referencer ?scope)]