This egg provides an incomplete, simple interface to qdbm. Here are two examples that illustrate its use.
> csi #;1> (use qdbm) #;2> (define d (dp-open-write "testdb" 'create)) #;3> d #<pointer 0x809a378> #;4> (dp-put d "key1" 4 "val1" 4) #t #;5> (dp-close d) #t #;6> (exit)
Verify the result with dpmgr (part of qdbm):
> dpmgr list testdb key1val1
#;1> (use qdbm) #;2> (define d (dp-open-read "testdb")) #;3> d #<pointer 0x809a378> #;4> (dp-get d "key1") "val1" #;5> (dp-close d) #t #;6> (exit)