Skip to content
Matthias Görges edited this page Mar 13, 2015 · 1 revision

cdb->table loads a data table from a (optionally encrypted) cdb file.

Parameter Description
cdbfile Filename (and path) to cdb database file
key Optional: u8vector encryption key (minimum length 24)

Example

Example 1: Save a database table to an encrypted cdb file.

(define (dbsave file key db)
  (let ((filepath (string-append (system-directory) (system-pathseparator) file)))
    (table->cdb db filepath key)
  ))
Clone this wiki locally