This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-26
Channels
- # aleph (1)
- # beginners (96)
- # boot (5)
- # cider (44)
- # cljdoc (11)
- # clojure (73)
- # clojure-conj (4)
- # clojure-dev (1)
- # clojure-finland (2)
- # clojure-italy (7)
- # clojure-new-zealand (1)
- # clojure-nl (3)
- # clojure-spec (4)
- # clojure-uk (66)
- # clojurescript (114)
- # code-reviews (16)
- # cursive (15)
- # datomic (37)
- # emacs (6)
- # events (2)
- # figwheel-main (12)
- # fulcro (36)
- # graphql (19)
- # hoplon (2)
- # hyperfiddle (3)
- # jobs (2)
- # leiningen (4)
- # off-topic (36)
- # om (1)
- # om-next (2)
- # other-languages (1)
- # re-frame (12)
- # reagent (12)
- # reitit (5)
- # remote-jobs (4)
- # ring (2)
- # shadow-cljs (218)
- # spacemacs (8)
- # specter (7)
- # sql (34)
- # tools-deps (9)
- # uncomplicate (6)
I really wish I'd added a :db/unique :db.unique/identity
to an attribute but it's too late as there are multiple values in the current set of database assertions -- I tried retracting all but one of those assertions but to no avail, is there anything I can do ?
yes, but the 2nd condition in the green box is not met
as I said - I tried retracting them
Has anyone setup CI to push/deploy Ions yet? If so, anything to watch out for? How do you do auth for the CLI in the CI env?
ok - I think I've found a way: I renamed the offending attribute :old-attribute-name and asserted the attribute again with the unique constraint, which works, thereafter one has only has the small inconvenience of having to specify the attribute in one's queries (to prevent assertions for the old one appearing)
and naturally I have to assert the latest values of the old attribute on the new one
but that's ok
really dumb question, but I’m drawing a blank today: how do you programmatically build a query that takes a UUID string as parameter?
(d/q '{:find [?n] :in [$ ?uuid] :where [[?n :uuid ?uuid]]} (d/db conn) uuid)
- programmatically manipulate the map as you wish
looks like what I’m trying, but that doesn’t work. I can run it in the console with [?e :org/id #uuid "string"]
, but without the reader tag in my query it won’t match.
try (UUID/fromString uuid-string)
(d/q '[:find ?org .
:in $ ?orgId
:where [?org :organization/id (UUID/fromString ?orgId)]]
db orgId )
do the UUID/fromString outside the query
outside the :where clause I mean
db (UUID/fromString orgId)
or pass in a UUID not a string
better to pass in UUIDs
convert elsewhere before using in query
cleaner
stillsuit has a custom scalar for that https://github.com/workframers/stillsuit/blob/51064573edab7a3f03f54f23c632aeb87f243fa4/resources/stillsuit/base-schema.edn#L40
should probably move to graphql channel?
I’m having trouble getting a postgres backend setup. the jdbc uri looks ok but when I try to backup from s3 computer says no
bin/datomic -Xmx1g -Xms1g restore-db 'jdbc:'
java.lang.IllegalArgumentException: :db.error/invalid-db-uri Invalid database URI jdbc:
argg. I managed to restore the database under the name ''
(empty string) and I can’t restore it again. Struggling to delete or rename it. :restore/collision The database already exists under the name ''