This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-01
Channels
- # 100-days-of-code (2)
- # beginners (83)
- # calva (3)
- # cider (98)
- # clara (3)
- # clj-kondo (2)
- # clojure (84)
- # clojure-dev (59)
- # clojure-europe (11)
- # clojure-italy (22)
- # clojure-madison (4)
- # clojure-nl (3)
- # clojure-spec (24)
- # clojure-uk (80)
- # clojurescript (33)
- # clr (3)
- # datomic (59)
- # events (2)
- # fulcro (20)
- # interop (35)
- # jobs (6)
- # jobs-rus (1)
- # joker (3)
- # kaocha (2)
- # luminus (3)
- # off-topic (16)
- # other-languages (2)
- # pathom (17)
- # planck (2)
- # reagent (1)
- # shadow-cljs (1)
- # test-check (1)
- # tools-deps (49)
- # vim (16)
Hi. I'm new to datomic, so not sure if I'm missing anything: I recently tried upgrading to the latest version of datomic (5927) in order to use tuples. However, when I specify the schema, I get the following error: :db.error/not-an-entity Unable to resolve entity: :db/tupleTypes
This is when running the following code
(d/transact c
[{:db/ident :player/location
:db/valueType :db.type/tuple
:db/tupleTypes [:db.type/long :db.type/long]
:db/cardinality :db.cardinality/one}])
@marshall Excellent, thanks, that worked! I assumed it was something to do with upgrading the schema but couldn't find the right function to call.
(d/administer-system {:uri "DB-URI"
:action :upgrade-schema})
Can you open a ticket with support (<mailto:[email protected]|[email protected]>) and include your transactor logs? I can have a look at it tomorrow morning
transaction functions run on the transactor whereas peer functions run on the peer. They have different environments
you could include the peer function on the transactor's classpath, but that's something you need to arrange ahead of time
I'm just thinking how I can call datomic api functions inside the transactor functions using d\...
alias but same doesn't work with any other namespace
you could also install your peer function into the db and call it from your tx function with d/invoke
I just thought for some reason that code which uses transactor is in its classpath by default
thanks @U09R86PA4
eg I have myproj.utils.datetime
ns with function shift-date
and I want to call it from datomic tx function
currently I have
Execution error at datomic.error/deserialize-exception (error.clj:154).
Syntax error compiling at (0:0).
I see that the on-cloud Cloudformation templates have been bumped across the board for 480-8770, however only Compute is mentioned in the Release history. To be clear, if I'm on storage-470-8654.1, I don't need to update storage, correct? (doing a quick diff of the two storage templates indicates they aren't identical, though I haven't gone further to see if it's only whitespace)
@grzm Correct. You’ll see here: https://docs.datomic.com/cloud/operation/upgrading.html#how-to-upgrade that you can check when the latest storage update was, and anything more recent than that is compute-only
Thanks for confirming. Is there anything I need to do to coordinate ion library releases with the upgrades? Or do I only need to update the ion library when I want to use the new features?
when you upgrade Datomic the version of the ion libraries running on your datomic nodes will be updated to whatever is the latest at that time
Oh, right. Silly me. I think you owe me a playful jab for that one the next time we see each other in person.
hello guys, I am trying to figure out how to make use of websockets with Datomic Cloud. So that pushes are directly sent to the user
@dlorencic1337 What have you tried?
Is this anything to be alarmed about (pun intended)? It seems like CloudWatch is having trouble locating the auto-scaling policies for the datomic DynamoDB tables. I’ve updated my stack once or twice via CloudFormation…maybe they’ve been lost somehow?
I’m reading through the pull documentation and it’s referring to a pull syntax like
(d/pull db [_release/artists] led-zeppelin)
but when I attempt it with
(d/pull the-db [_user/recommends] 11263397115183903)
I get No such namespace: _user
, however with
(d/pull the-db [:user/_recommends] 11263397115183903)
I get
#:user{:_recommends [#:db{:id 66353327713036842}]}
.
Does anyone have an example with the [_user/recommends]
syntax that the documentation is referring to? Am I misunderstanding how it works?