Brian Craft <craft.br...@gmail.com> writes:

Hi Brian,

> If (read-stuff) is not lazy, then this looks pretty simple: all the
> data is loaded in memory & returned to (write-stuff).  If the data is
> large you wouldn't want it all in memory. What then? Could you make
> read-stuff return a lazy sequence? My impression after a brief
> experiment is that this doesn't work: when the inner with-connection*
> returns, the db connection is closed. A lazy sequence from
> (read-stuff) then can't be evaluated w/o throwing an error.

Yes, that's true.  Maybe Korma [1] is better suited for this kind of
operation.

Bye,
Tassilo

[1] http://sqlkorma.com

-- 
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

Reply via email to