Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: dbms3.r 01

From: g:santilli:tiscalinet:it at: 17-Jan-2002 21:12

Hello Romano! On 15-Gen-02, you wrote: RT> I did not try, but what i want is a unsorted collection of RT> all column of all records. DB-SELECT only gives you the row-ids; getting all the records in a block is not possible with dbms.r, as I've never had a need for that; to get them as a block of objects, you can use: block: make block! 1024 db-foreach row %table/ none [ insert tail block make row [] ] The MAKE is needed because DB-FOREACH reuses the same object across evaluations for efficiency. RT> I hope you will use Hash! I was thinking about b-trees... but hash! is certainly an option. Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila --