lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tuesday, March 27, 2007 gary ng wrote: 

> I tried to implement a simple SQL based persistent store [...]

> But I don't know how to mimic the next() which is
> needed in the "for k,v in pairs(a) do end" case.

> Is that possible ? As otherwise, I need to change the
> coding style to "for k,v in a:pairs()" and wrap around
> a basic table if I want basic table storage.

A cache is used in http://lua-users.org/wiki/PersistentTablesSqlite
which is only appropriate for small data sets!

e

-- 
Doug Currie
Londonderry, NH, USA