[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: persistent storage using SQL yet with table like access ?
- From: Doug Currie <doug.currie@...>
- Date: Tue, 27 Mar 2007 10:14:15 -0400
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