Fork me on GitHub
#datomic
<
2018-05-18
>
robert-stuttaford09:05:11

As of the newest tools.deps.alpha "0.5.435" (TDEPS-9 https://github.com/clojure/tools.deps.alpha/blob/master/CHANGELOG.md#changelog), you can now use Datomic Pro! May I suggest that someone on the Datomic team add a note about the below to this page? https://my.datomic.com/account

;; ~/.m2/settings.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
                      https://maven.apache.org/xsd/settings-1.0.0.xsd">
  <servers>
    <server>
      <id>my.datomic.com</id>
      <username>USERNAME</username>
      <password>PASSWORD</password>
    </server>
  </servers>
</settings>

;; deps.edn

{:deps
 {com.datomic/datomic-pro {:mvn/version "0.9.5697"}}

 :mvn/repos
 {"" {:url ""}}}
thanks @alexmiller @dominicm !

cgrand13:05:14

Hi! What does :db.error/cycle-in-affinity mean exactly? (I can work around the issue but I’d like to understand better what’s going on)

notid16:05:19

I’m having trouble distinguishing between whether to use datomic’s api (https://docs.datomic.com/on-prem/clojure/index.html), or the client api (https://docs.datomic.com/client-api/datomic.client.api.html). The APIs are similar, but different enough. FWIW I’m using datomic starter.

cjsauer16:05:00

@brycecovert if you're just trying to tinker, I've found Datomic Cloud to be very quick to get to a working environment. I suppose it depends what your goals are.

notid16:05:05

I am mostly just wanting to learn and see if it makes sense to integrate datomic into an existing system. if it does, deploying it through docker would be the most straightforward way. My assumption is that would be wrapping up datomic starter

notid16:05:07

are one of these apis meant to be used for cloud and the other on-prem/starter?

notid16:05:13

Oh, I think I’ve got it. One is the peer api and the other is the client api.

cjsauer16:05:57

My understanding is that there is both a peer and a client library available for use with On-Prem. Cloud has its own separate client library (and only a client library).

cjsauer16:05:53

I don't have any experience with launching Datomic via Docker, but it looks like there are plenty of options over on Docker Hub. (https://hub.docker.com/search/?isAutomated=0&amp;isOfficial=0&amp;page=1&amp;pullCount=0&amp;q=datomic&amp;starCount=0)

cjsauer16:05:10

Those are all going to be the unlicensed variant I imagine though...so they wouldn't be used for production.

cjsauer16:05:59

>I am mostly just wanting to learn and see if it makes sense to integrate datomic into an existing system. I'd personally recommend launching a Datomic Cloud (Solo) instance in this case. It's easy to get set up, and it can directly transition into a production deployment without any API changes necessary.

cjsauer16:05:43

I have one running in my AWS account that I just create lots of ephemeral databases on for testing ideas and for development

notid16:05:57

Cool thanks!

notid16:05:08

That’s helpful - I’ll try out solo.

beders19:05:40

is there any way you can use the peer library with the cloud version on AWS?

beders19:05:58

I'm mostly interested in taking advantage of the client side cache