Skip to content
clpetersen edited this page Oct 16, 2014 · 2 revisions

Returns true if a key exists in the constant database being created.

Parameter Description
cdbm Constant database creation handle returned by make-cdb
key arbitrary scheme object to use for query

Example:

> (define cdbm (make-cdb "test.cdb"))
> (cdb-make-add cdbm "A" 1)
> (cdb-make-exists cdbm "A")
#t
> (cdb-make-exists cdbm "B")
#f
> (cdb-make-finish cdbm)
> (define cdb (init-cdb "test.cdb"))
> (cdb-find cdb "A")
1
> (cdb-find cdb "B")
#f
> (cdb-finish cdb)
Clone this wiki locally