You are THE MAN! Thank you so much Meikel !!!
On Apr 9, 10:24 am, Meikel Brandmeyer wrote:
> Hi,
>
> On Apr 9, 5:16 pm, Base wrote:
>
> > (with-connection db
> > (transaction
> > (map insert-user users )))
>
> > Any thoughts on why this is occurring? What am I missing?
>
> Laziness. T
Hi,
On Apr 9, 5:16 pm, Base wrote:
> (with-connection db
> (transaction
> (map insert-user users )))
>
> Any thoughts on why this is occurring? What am I missing?
Laziness. The map does not get realised in the with-connection. map is
not a loop. Use doseq.
(with-connection db
(transa
HI Group!
I am attempting to use sql for inserts into H2 db. It works quite
well when inserting a single record, however when I try and map an
insert function over a collection i keep getting an exception saying :
java.lang.Exception: no current database connection
I defined a function, insert-