Hello Jimm
I've been testing the clojure library clj-record and it is very
usefull. But I have a question, I'm a 'noob' on clojure language and
I'm wondering if it is possible to write a macro or something to get
namespaces generated for every table in my database, for example I
inicialize the model of one table 'keyword' in a keyword.clj file:
(ns interp.keyword
(:use interp.conn) ;for db connection
(:require clj-record.boot))
(clj-record.core/init-model
:table-name "keyword")
I already try to use create-ns and with-ns to define a namespace but
din't work. Something like:
(with-ns (create-ns 'interp.keyword)
(:require clj-record.boot)
(:use interp.conn)
(clj-record.core/init-model
:table-name "keyword")
)
Any advices? thank you in advance!
Regards!
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en