-
Notifications
You must be signed in to change notification settings - Fork 86
table cdb
Matthias Görges edited this page Mar 13, 2015
·
1 revision
table->cdb stores table as (optionally encrypted) cdb file.
Parameter | Description |
---|---|
t | Table to be stored |
cdbfile | Name of cdb database file to be created |
key | Optional: u8vector encryption key to be used (minimum length 24) |
Example 1: Load a database table from an (optionally encrypted) file.
(define (dbload file key)
(let ((filepath (string-append (system-directory) (system-pathseparator) file)))
(if (file-exists? filepath)
(let ((res1 (cdb->table filepath key)))
(if (table? res1)
res1
(let ((res2 (with-exception-catcher
(lambda (e) (log-error "dbload failed on " filepath) #f)
(lambda () (list->table (with-input-from-file filepath (lambda () (read))))))))
(if (table? res2) (table->cdb res2 filepath key))
res2
)
)
)
(begin (log-error "dbload: file not found: " filepath) (make-table)))
))
-
- 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