Hi Kashyap,

> I tried to implement key-value store/get. I am
> not sure how to enumerate all the keys though.

A key/value storage can be done very easily.

> (pool "test.db")

You store values under keys directly in the DB root object by passing NIL as the
tree:

   (store NIL "KEY" "VALUE")
   (commit)

Both "KEY" and "VALUE" can be anything (number, symbol or list).

With (fetch NIL "KEY") you'll find it again.

☺/ A!ex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to