dbm
(require (planet jaymccarthy/dbm:2:0)) |
This package provides an interface to UNIX dbm databases for Racket.
Returns #t if v is a dbm structure, #f otherwise.
A dbm structure is a dictionary.
(dbm-open pth) → dbm? |
pth : path-string? |
Opens the dbm file at pth, returning a handle.
(dbm-close! dbm) → void |
dbm : dbm? |
Closes the database handled by dbm.
Removes key from dbm.
(dbm-set! dbm key val [#:replace? replace?]) → void |
dbm : dbm? |
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.