I'm using the new Clojars version of datomic-free:

(defproject clj-lobapp "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME";
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :plugins [[lein-localrepo "0.4.0"]]
  :dependencies [[org.clojure/clojure "1.4.0"]
                 [com.datomic/datomic "0.8.3335"]])


user=> ;; make in memory database
       (use '[datomic.api :only (q db) :as d])
nil
user=> (def uri "datomic:mem://matches")
#'user/uri
user=> (d/create-database uri)
true
user=> (def conn (d/connect uri))
#'user/conn
user=>

user=> #db/id [:db.part/db]
#<RuntimeException java.lang.RuntimeException: No reader function for tag db/id>
nil
user=> *data-readers*
{base64 #'datomic.codec/base-64-literal, db/fn
#'datomic.function/construct, db/id #'datomic.db/id-literal}
user=> (get *data-readers* 'db/id)
#'datomic.db/id-literal
user=> ((get *data-readers* 'db/id) :db.part/db)
UnsupportedOperationException nth not supported on this type: Keyword
clojure.lang.RT.nthFrom (RT.java:787)

user=> ((get *data-readers* 'db/id) [:db.part/db])
#db/id[:db.part/db -1000000]



What am I missing here?


Thanks,

Timothy Baldridge

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to