Fork me on GitHub
#datomic
<
2018-04-22
>
jaret04:04:52

@kingcode Client is not available on FREE. You would see this error if you were trying to use peer server on FREE or on a version of Datomic prior to the release of client. If your license is expired before the release of client (11-28-16 … 0.9.5530) then you wouldn’t be able to start a transactor, let alone the peer-server. So I would confirm which version you’re using and make sure you’re using datomic pro 0.9.5530 or latter. Note: Datomic licenses (even starter) are perpetual, meaning you can continue using any version of Datomic released prior to your expiration date forever.

dominicm09:04:27

Is there a better alternative to:

[(ancestor ?root ?binding)
 [(identity ?root) ?binding]]
Where I'm trying to bind the root of the ancestry tree as well as the ancestors ( I have other rules for the ancestry part )

favila14:04:53

AFAIK identity is the only way to “alias” a binding (bind to a new name without transformation)

favila14:04:06

I use this trick frequently

Pontus13:04:18

I'm using a transaction function like this: (d/transact conn [[:db.fn/retractEntity id]]) -- I was thinking of adding a check that the entity that's going to be deleted also has the correct user ID (taken from a token). Currently thinking of doing this: 1. querying the user ID of the entity by the entity ID 2. check that it's the same one provided in the token 3. delete using the same method as before. I was wondering if anyone knows if there is a simpler/better way to do that? I'm just curious if there's a SQL equivalent to AND WHERE userID = x or something similar

kingcode14:04:01

@jaret Thank you for the info. The version I got a license for is 0.9.5497 - does that mean that all the Get Started instructions are not going to work for me?

favila14:04:23

Is that the original or latest version you have licensed? Licenses are a year

kingcode14:04:05

@favila I believe that is the original version I have licensed.

favila14:04:55

You should look at your http://my.datomic.com page and see what versions it lets you download

favila14:04:57

Or you can bisect versions and try your license key. Eventually you will find the highest version it works on

favila14:04:44

But it should be any version released within a year of your license date

kingcode14:04:44

My account doesn’t list version #, only expiry date and Type of license (Pro Starter), with scripts listing $VERSION_NUMBER only

favila14:04:13

You should have a “downloads” page

kingcode14:04:15

Ah I see - OK, I can get any up to 0.9.5697 (which I already got via the afore-mentioned script). However, as @jaret mentioned, the problem I have is due to my getting a version not covered by my expired license…

kingcode14:04:24

So I tried running the Getting Started command against my old (non-expired) version, and got the Peer_Server class not found, still…don’t know what to do.

favila14:04:51

Is 5697 before client api?

kingcode14:04:57

I dabled with datomic in the past and forgot all about it….want to learn it anew now.

kingcode14:04:32

Don’t know what client API version is…? Shouldn’t it be the same?

favila14:04:55

5530 introduces client api

kingcode14:04:01

I tried to run the following command from my install dir:

bin/run -m datomic.peer-server -h localhost -p 8998 -a myaccesskey,mysecret -d hello,datomic:

favila14:04:08

So anything higher than that should work

favila14:04:23

With the new getting started instructions

kingcode14:04:30

@favila OK…then I guess my old version isn’t going to cut it?

favila14:04:49

Your license has access to a recent enough version

favila14:04:03

Just download it and use that instead

favila14:04:27

Datomic has three different things now

favila14:04:05

Client api via cloud service; client api via “on prem” service; peer api via on-prem

favila14:04:18

When you first got your license only the last one existed

favila14:04:43

Getting started now only seems to talk about client api in either cloud or on-prem scenarios

favila14:04:01

Or I don’t know where peer api introductions are

kingcode15:04:26

@favila Ah OK Thank you!