dbload - part-cw/lambdanative GitHub Wiki
(dbload file key)
dbload load the content of a cdb database from a file and return as a table.
Parameter | Description |
---|---|
file | Filename (and path) of cdb database file |
key | Encyption key as u8vector (minimum length 24) |
Example
Example 1: Load an encrypted database using uiform syntax.
(uiset 'adminpath (string-append "sandbox" (system-pathseparator) "admin.db"))
(uiset 'cryptokey (random-u8vector 24))
(uiset 'database (dbload (uiget 'adminpath) (uiget 'cryptokey)))