Queries a MongoDB database, accepting the same arguments as
somnium.congomongo/fetch, but returning an Incanter dataset instead
of a sequence of maps.
Examples:
(use '(incanter core datasets mongodb))
(use 'somnium.congomongo)
;; first load some sample data
(def data (get-dataset :airline-passengers))
(view data)
;; a MongoDB server must be running on the localhost on the default port
;; for the following steps.
(mongo! :db "mydb")
(mass-insert! :airline-data (:rows data))
;; and then retrieve it
;; notice that the retrieved data set has two additional columns, :_id :_ns
(view (fetch-dataset :airline-data))
Comments top
No comments for fetch-dataset. Log in to add a comment.