chickadee » level-sexp

level-sexp

Description

Read and write s-expressions to a level implementation.

Example use

(use leveldb level level-sexp)

(define db
  (level-sexp (open-db "testdb")))

(db-put db "key" '((name . "test")))
(db-get db "key") ;; => ((name . "test"))

API

(level-sexp db) procedure

Wrap another level implementation, enabling read/write of s-expression values instead of raw strings. Keys are not translated from s-expressions to strings, only values.

Source code / issues

https://github.com/caolan/chicken-level-sexp

Contents »