Outdated egg!

This is an egg for CHICKEN 3, the unsupported old release. You're almost certainly looking for the CHICKEN 4 version of this egg, if it exists.

If it does not exist, there may be equivalent functionality provided by another egg; have a look at the egg index. Otherwise, please consider porting this egg to the current version of CHICKEN.

qdbm

  1. Outdated egg!
  2. qdbm
    1. Description
    2. Author
    3. Requirements
    4. Download
    5. Documentation
      1. Writing a "depot" database
      2. Reading a "depot" database
    6. License

Description

Incomplete, simple interface to qdbm.

Author

Sven Hartrumpf

Requirements

None

Download

qdbm.egg

Documentation

This egg provides an incomplete, simple interface to qdbm. Here are two examples that illustrate its use.

Writing a "depot" database

 > 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

Reading a "depot" database

 #;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)

License

 GPL
 (What version, GPL/LGPL?)