This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-10-15
Channels
- # announcements (1)
- # babashka (81)
- # beginners (48)
- # calva (49)
- # clj-kondo (52)
- # cljdoc (7)
- # cljs-dev (39)
- # clojure (33)
- # clojure-australia (18)
- # clojure-europe (48)
- # clojure-italy (2)
- # clojure-morsels (2)
- # clojure-nl (3)
- # clojure-uk (6)
- # clojurescript (5)
- # community-development (2)
- # conjure (6)
- # cursive (3)
- # data-science (29)
- # datalog (4)
- # datomic (14)
- # events (1)
- # fulcro (1)
- # graphql (18)
- # gratitude (2)
- # helix (11)
- # introduce-yourself (2)
- # java (15)
- # keyboards (2)
- # lsp (6)
- # luminus (4)
- # membrane (32)
- # minecraft (1)
- # missionary (7)
- # nextjournal (2)
- # off-topic (28)
- # portal (28)
- # releases (1)
- # ring (1)
- # shadow-cljs (3)
- # sql (6)
- # xtdb (23)
Hi, new to Datomic, trying to set it up with postgres storage. Transactor starts OK, but I have a problem starting the peer server, the error I am getting is "Could not find datomic in catalog". Any hints?
I'm not sure if this is the problem; But the database should be created before booting the peer-server.
ah, found the problem: you first need to create the (datomic) database by hand as explained here: https://docs.datomic.com/on-prem/peer/peer-getting-started.html
Peer Server does not create or delete databases and must be connected to an already-existing logical database within the Datomic system.
Hey. How are you running your Postgres? Locally or inside a Docker container? Ia was trying to create a connection from my Clojure app on the host to Postgres in Docker which fails. So I am hoping for a basic config that works -.-
sebastian: Have you tried setting ALT-HOST in the transactor properties file? https://docs.datomic.com/on-prem/operation/deployment.html#peers-fail-connect-txor
@U4LN72X44 I am running it locally, had no problems but the one I described..
hi is there a way to attach a tx function to every tx when the some attribute is being updated (w/o specifying it explicitly as part of tx)? for example to enforce the constraint
order/state can be one of #{:pending :rejected ...}
similar to what sql does on constraint check
How about: https://docs.datomic.com/cloud/schema/schema-reference.html#attribute-predicates ?
(I haven't used it myself though)