-
Notifications
You must be signed in to change notification settings - Fork 86
cdb make put
clpetersen edited this page Oct 16, 2014
·
2 revisions
Add or replace a key value pair to a constant database. See the libcdb documentation for details.
Parameter | Description |
---|---|
cdbm | Constant database creation handle returned by make-cdb |
key | arbitrary scheme object to use as key |
val | arbitrary scheme object |
flag | Insertion mode: one of CDB_PUT_ADD, CDB_PUT_REPLACE and CDB_PUT_INSERT |
> (define cdbm (make-cdb "test.cdb"))
> (cdb-make-put cdbm "A" 1 CDB_PUT_ADD)
> (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)
-
- accelerometer
- alist
- audio
- audioaux
- base64
- btle-scan
- camera
- cdb
- cgi
- config
- csv
- curl
- digest
- dmtx
- download
- eventloop
- fcgi
- fft
- generalized-arrays
- gps
- graph
- gyro
- hidapi
- hpdf
- html
- httpsclient
- hybridapp
- json
- lmdb
- ln_core
- ln_glcore
- ln_glgui
- ln_store
- localization
- localization_gui
- localnotification
- magnetometer
- mdns
- mqtt
- mqtt-store
- multitouch
- oauth
- orientation
- p256ecdsa
- png
- portaudio
- pregexp
- pressure
- prime
- pushnotification
- redcap
- rsa
- rtaudio
- rupi
- rotation
- sanestring
- scheduler
- serial
- sets
- settings
- simplexnoise
- sqlite
- ssax
- syntax-case
- timestamp
- ttf
- uiform
- url
- uuid
- vibrate
- videoplayer
- watchdog
- website
- xml
- zip