On Wed, Dec 28, 2011 at 7:50 AM, jayvandal <s...@ida.net> wrote: > Doesn't this line of your example run as test? > user=> (ns jay.test (:require [clojure.contrib.sql :as sql]))
It's just declaring a namespace and requiring clojure.contrib.sql (which loads the library). I called it jay.test because it was a test for Jay :) > The other code I listed was code to run as a clojure program , not as > leiningen, which you said was missing lines of code after the (ns You have not shown how you actually RUN the code. Since you're not using Leiningen, I suspect you have a classpath problem but you need to show us exactly how you are trying to run the code for us to help debug that. > I apologize for my lack of understanding, but I feel I must be able to > access databases or I can't use clojure I'm sure it's just something simple missing in how you are trying to run the code. As I've shown, the code itself is likely fine since my example loads clojure.contrib.sql correctly (because I'm using Leiningen, the classpath issues are taken care of). -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ World Singles, LLC. -- http://worldsingles.com/ "Perfection is the enemy of the good." -- Gustave Flaubert, French realist novelist (1821-1880) -- 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