db:irows(sql)
Execute a SQL statement and return an iteration function that can be used in a for loop.
Example
sum=0
db=sqlite.open('testdb')
for row in db:irows[[select x from foo]] do
sum=sum+row[1]
end