This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-19
Channels
- # beginners (7)
- # boot (48)
- # clojure (50)
- # clojure-portugal (1)
- # clojure-russia (10)
- # clojure-spec (29)
- # clojure-uk (9)
- # clojurescript (116)
- # core-logic (1)
- # cursive (12)
- # datascript (2)
- # datomic (7)
- # defnpodcast (8)
- # dirac (80)
- # emacs (486)
- # hoplon (5)
- # instaparse (3)
- # keechma (1)
- # luminus (3)
- # lumo (35)
- # off-topic (65)
- # om (6)
- # onyx (6)
- # perun (42)
- # re-frame (5)
- # reagent (5)
- # rum (2)
- # untangled (170)
- # vim (13)
anyone know why trying to delete a database like so (with the client api`): (delete-database “datomic:
might yield the following error:
> ClassCastException [trace missing]
Figured out that the syntax for the client is different, of course. So for list-databases
it looks like this:
(pprint (<!! (list-databases {:account-id client/PRO_ACCOUNT, :secret "datemo", :region "none", :endpoint "localhost:8998", :service "peer-server", :access-key “datemo”})))
The map is like what you provide to connect
.
But still can’t get the delete-database command to work using this syntax, and providing in addition a :db-name
symbol.
{:cognitect.anomalies/category :cognitect.anomalies/incorrect,
:datomic.client/http-error {:cause "Invalid Op”}}
http-error made me think that maybe the peer-server wasn’t running, but it is. then, though, i wondered if it doesn’t make sense in the first place to delete a database through a peer-server connection since the peer-server start-up syntax seems to require you to specify a particular db by name.
i.e. you’d be deleting the database to which the peer-server is connected. logically, it seems that that should invalidate the peer server connection…