I am trying to get some text from a database and use it in a function in clojure.
(defn getSelectedText [id]
(j/query mysql-db
["select timesRead, text from news where id=?" id]))
When I println this it shows
( {:timesRead 6, :text "Some text"})
When I try get to get the text from this it just doesn't work.
Do you have any idea how to change the getSelectedText function to get the text I need?
geton a collection of one map (record).