This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-09-04
Channels
- # admin-announcements (25)
- # beginners (21)
- # boot (161)
- # cider (12)
- # clojure (92)
- # clojure-art (1)
- # clojure-germany (5)
- # clojure-nl (5)
- # clojure-russia (38)
- # clojure-sweden (1)
- # clojurescript (87)
- # clojutre (2)
- # cursive (9)
- # datascript (1)
- # datomic (22)
- # devops (1)
- # editors (33)
- # events (3)
- # hoplon (19)
- # immutant (7)
- # jobs (2)
- # ldnclj (22)
- # off-topic (41)
- # re-frame (34)
- # reagent (39)
Hi all - question about using couchbase as storage in Datomic. I have started my transactor and it connects to my test bucket just fine. When I open Datomic console I can see my bucket under the storage alias I provided but the DB drop down is empty. It's blank and I can't run by queries with the error "DB name cannot be blank"
@damien: it sounds to me like you need to create a db, like here: http://docs.datomic.com/tutorial.html#making-a-database
@damien: to dispel what may be a confusion - the storage and the db are different things.
@damien: also, you can do it in clojure, if you'd prefer http://docs.datomic.com/clojure/#datomic.api/create-database
does anyone know of a good example of using datomic in clojure? I'd like to see one. The examples here are for java and groovy.. but.. i'm not seeing a whole lot for clojure on Datomic github 😭 I'd like to see where the attributes go and init of the application
@clojuregeek: This repo: https://github.com/Datomic/day-of-datomic has quite a few examples of using Datomic from Clojure
yes there are some small things, i was kind of hoping to see a small example that was complete. but I can work with that.. thanks
@clojuregeek: I haven't done this myself yet, but when I get to the point you're at, I plan to take a look at how juxt's modular sets up datomic projects: https://github.com/juxt/modular
cool, i'll check it out
anyone use lein-datomic
?
airworthy.repl=> (into {} (api/entity (db/db) 277076930200612)) {:airport/city "GRAYSLAKE", :airport/name "Campbell Airport", :airport/type :airport, :airport/public true, :airport/lng -88.0740880555556, :airport/lat 42.3246111111111, :airport/state "IL", :airport/code "C81", :airport/elev 788}
airworthy.repl=> (count (api/q '[:find ?e :in $ :where [?e :airport/lat]] (db/db))) 19339