Hi, I would like to save a mongo collection to a file, and later read that file into a clojure program. congomongo 'fetch' returns a lazy sequence of clojure types ..
somnium.dwnload=> (doseq [v (fetch :tweets)] (prn (type v))) clojure.lang.PersistentArrayMap clojure.lang.PersistentArrayMap ... I am trying to write to disk in clojure format with print-dup : (defn write-database2 [ file obj] (with-open [w (FileWriter. file)] (binding [*out* w *print-dup* true] (prn obj)))) but I get this error: (write-database2 "f.dat" (fetch :tweets)) java.lang.IllegalArgumentException: No method in multimethod 'print-dup' for dispatch value: class com.mongodb.ObjectId Thanks! Brian -- 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