This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-08-14
Channels
- # atom-editor (5)
- # babashka (6)
- # beginners (29)
- # calva (16)
- # cider (1)
- # clj-kondo (20)
- # cljs-dev (44)
- # clojure (29)
- # clojure-europe (19)
- # clojure-nl (8)
- # clojure-norway (7)
- # clojure-spec (2)
- # clojure-sweden (1)
- # clojure-uk (56)
- # clojurescript (32)
- # code-reviews (30)
- # conjure (24)
- # cursive (49)
- # datomic (4)
- # fulcro (31)
- # helix (3)
- # instaparse (4)
- # kaocha (100)
- # lambdaisland (2)
- # mid-cities-meetup (1)
- # monads (1)
- # off-topic (42)
- # pathom (13)
- # pedestal (6)
- # portal (5)
- # re-frame (6)
- # reagent (9)
- # reitit (11)
- # remote-jobs (1)
- # rewrite-clj (11)
- # shadow-cljs (44)
- # sql (22)
- # tools-deps (13)
- # uncomplicate (1)
- # xtdb (15)
Has someone here used Datomic with Algolia before, or with something similar? If so, are there any gotchas or something I should be aware of?
Re: https://docs.datomic.com/cloud/getting-started/configure-access.html#authorize-user https://docs.datomic.com/cloud/ions/ions-tutorial.html#org6699cd4 Please can you confirm whether or not administrator permissions are required for all applications to connect to datomic cloud?
When initially transacting your schema on a fresh database and using tuple attributes, do folks typically do 2 transactions -- one for the schema without tupleAttrs and one with the tupleAttrs?
Wait, order in the transaction appears to matter! This transaction fails
(d/transact conn {:tx-data [#:db{:ident ::a+b,
:valueType :db.type/tuple,
:tupleAttrs [::a ::b],
:cardinality :db.cardinality/one,
:unique :db.unique/identity}
#:db{:ident ::a,
:valueType :db.type/string,
:cardinality :db.cardinality/one}
#:db{:ident ::b,
:valueType :db.type/string,
:cardinality :db.cardinality/one}]})
Execution error (ExceptionInfo) at datomic.core.error/raise (error.clj:55).
:db.error/invalid-install-attribute First error: :db.error/invalid-tuple-attrs
And this one succeeds.
(d/transact conn {:tx-data [#:db{:ident ::a,
:valueType :db.type/string,
:cardinality :db.cardinality/one}
#:db{:ident ::b,
:valueType :db.type/string,
:cardinality :db.cardinality/one}
#:db{:ident ::a+b,
:valueType :db.type/tuple,
:tupleAttrs [::a ::b],
:cardinality :db.cardinality/one,
:unique :db.unique/identity}]})