Re: EDS
- Posted by Brian Jackson <bjackson at 2FARGON.COM> Mar 08, 2000
- 602 views
I am very impressed with EDS so far. Simple, extensible - it's a logical extension of Euphoria. I have a feeling it will turn out to be a very powerful tool. OK, now for the wish list: 1) Positional read. I'd like to be able to use "ABCD" as my key for a POSITIONAL read. The "file pointer" (or whatever the beastie is) is put just before where key ABCD would occur in the file, whether it's there or not. 2) Sequential key read. Along the same lines, I'd like to have a sequential (probably forward and backward) read based of the key of the last record read. That way, if I do a positional read for the key "JO", I could get all the records whose keys start with JO, and then logically exit the loop. -- short example of some code that will display -- every key that starts with the characters "JO" object result sequence mykey result = db_positional_read("JO") while 1 do result = db_read_keysequential() if atom(result) then exit end if mykey = result[1][1..2] if compare(mykey, "JO") exit end if puts(1,"This key = " & result[1] & "\n") end while -- end code 3) Adding some kind of wildcard match on a key. For instance, if my key was InvoiceNumber,InvoiceDate and I wanted to retrieve all the records for a given date, it would be nice to wildcard match a key. 4) Maybe even a better idea would be to allow multiple indices. This would get around that problem and probably be easier to implement. Well, that's about all I can think of at the moment! It really looks excellent Rob. Keep up the great work! Brian Jackson 2FARGON Technologies bjackson at 2fargon.com http://www.2fargon.com