|(require (planet jaymccarthy/dbm:2:0))|
This package provides an interface to UNIX dbm databases for PLT Scheme.
Returns #t if v is a dbm structure, #f otherwise.
A dbm structure is a dictionary.
|( pth) →|
|pth : path-string?|
Opens the dbm file at pth, returning a handle.
|( dbm) → void|
Closes the database handled by dbm.
Removes key from dbm.
|( dbm key val [#:replace? replace?]) → void|
|key : string?|
|val : string?|
|replace? : boolean? = #f|
Sets key to val in dbm. Results in an error if key is present in dbm and replace? is not true.
Returns key’s value in dbm, calling or returning fail if key is not present, like dict-ref.