| Author |
Setting the db var for clj-record library in a common file
|
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
I'm trying to use the clj-record library, and I don't want to set the db variable in all my entity files. How can I put it in a common file and use it ? (I still don't get the concept of namespace well...)
Here is what I have :
chapter09/model/user.clj
I want to extract the db variable.
|
[My Blog]
All roads lead to JavaRanch
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14672
|
|
Got it. That was simple...
chapter09/config/db.clj
chapter09/model/user.clj
|
 |
 |
|
|
subject: Setting the db var for clj-record library in a common file
|
|
|