qdbm

  1. 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?)