Thanks for pointing this out.
Adding the namespace declaration was exactly the reason why loading
the file did not work in the first place.
Now everything is working like a charm, and thanks to you I learnt yet
another piece of the Clojure puzzle!
Best regards,
Stefan
On Oct 24, 10:54 pm, Meik
Hi,
On 24 Okt., 04:00, Stefan Rohlfing wrote:
> This is what I did:
> -
> src/active-record/tns.clj
>
> (ns active-record.tns)
>
> (require '[active-record.user :as user])
> (require '[active-record.charge :as charge])
You shou
I started Emacs again and now your solution is working! I have no idea
why it did not work on the first restart but I am happy that I now can
import aliases from another namespace.
Thanks again for your help!
Stefan
On Oct 24, 10:00 am, Stefan Rohlfing
wrote:
> Hi Mikel,
>
> I tried your soluti
Hi Mikel,
I tried your solution but am still not able to import the aliases from
another namespace:
This is what I did:
-
src/active-record/tns.clj
(ns active-record.tns)
(require '[active-record.user :as user])
(require '[acti
Thanks for the great explanation. This really makes using the clj-
record library much more comfortable!
Stefan
PS. Sorry for replying late. I could not get my VPN to work which
meant Google Groups was blocked for me.
On Oct 21, 7:47 pm, Meikel Brandmeyer wrote:
> Hi,
>
> you can't transfer a
Hi,
you can't transfer aliases from one namespace to another. But as a
workaround, you can create a file which contains the necessary
commands:
active-record/tables.clj:
(require '[active-record.user :as user])
(require '[active-record.charge :as charge])
And then just load the file in the names
Dear Clojure group,
The library clj-record requires to add a source file for every table
in a given database.
This can lead to a lot of files whose namespaces have to be imported
wherever you want to work on the tables.
In order to avoid having to write the whole namespace declaration
every time