Iteration syntax for UncommonSQL

Edi Weitz <[email protected]> 17 Jan 2003 10:36:15 +0100
Newsgroups gmane.lisp.uncommon-sql,gmane.lisp.lispworks.general
Message-ID <[email protected]>
Hi!

(I'm currently using UncommonSQL because I only have a license for LW
professional but I'm sending a copy to the LW mailing list because I
guess the answer is indepent of whether it's "Uncommon" or "Common".)

I'm using the OO interface to UncommonSQL and have created a view
class USER which maps to a database table USERS. Everything works fine
except for the fact that, in order to loop through all elements of the
database, I resort to things like

  (dolist (user (sql:select 'user))
    ..)

which conses up a list that I don't actually need (and which might be
large).

I'm aware of the iteration constructs described in
<http://www.lispworks.com/reference/sql-tutorial/index.html#section-4.3>
but I couldn't figure out how to use them with view classes.

Is there something that I'm missing?

Thanks,
Edi.